24 lines
591 B
Swift
24 lines
591 B
Swift
import SwiftUI
|
|
|
|
struct MainView: View {
|
|
@State private var username: String = ""
|
|
|
|
var body: some View {
|
|
NavigationView {
|
|
VStack {
|
|
TextField("Username", text: $username)
|
|
.disableAutocorrection(true)
|
|
//.autocapitalization(.none)
|
|
NavigationLink(destination: ProfileView(username: username)) {
|
|
Text("Show Feed")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
struct MainView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
MainView()
|
|
}
|
|
}
|