Merge pull request #6 from angristan/instance-url

AddAccountView: adapt keyboard to URL input
This commit is contained in:
Thomas Ricouard 2022-12-30 22:18:11 +01:00 committed by GitHub
commit 56cdc8164a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,8 +24,11 @@ struct AddAccountView: View {
var body: some View {
NavigationStack {
Form {
TextField("Instance url", text: $instanceName)
TextField("Instance URL", text: $instanceName)
.listRowBackground(theme.primaryBackgroundColor)
.keyboardType(.URL)
.textContentType(.URL)
.textInputAutocapitalization(.never)
if let instance {
Button {
isSigninIn = true