Files
praca_inzynierska/Implementation/Peered/SetUsername/SetUserNameBottomSheetView.swift
T

20 lines
401 B
Swift

import SwiftUI
struct SetUserNameBottomSheetView: View {
@State private var proposedUsername: String = ""
@Binding var username: String?
var body: some View {
Form {
Section("Set your username") {
TextField("Username", text: $proposedUsername)
}
Button("Save username") {
username = proposedUsername
}
}
.interactiveDismissDisabled()
}
}