remove iOS 16 support (#3443)

* remove iOS 16 support

* remove iOS 16 support

* test updates

* added more delay

* revert

* adding waiting time on the CI
This commit is contained in:
Mauro
2024-10-24 17:21:28 +02:00
committed by GitHub
parent d53912dd0c
commit 17ef4093d5
51 changed files with 91 additions and 91 deletions

View File

@@ -74,7 +74,9 @@ struct LoginScreen: View {
.textContentType(.username)
.autocapitalization(.none)
.submitLabel(.next)
.onChange(of: isUsernameFocused, perform: usernameFocusChanged)
.onChange(of: isUsernameFocused) { _, newValue in
usernameFocusChanged(isFocussed: newValue)
}
.onSubmit { isPasswordFocused = true }
.padding(.bottom, 20)
@@ -135,19 +137,19 @@ struct LoginScreen_Previews: PreviewProvider, TestablePreview {
LoginScreen(context: viewModel.context)
}
.previewDisplayName("matrix.org")
.snapshotPreferences(delay: 0.1)
.snapshotPreferences(delay: 1)
NavigationStack {
LoginScreen(context: credentialsViewModel.context)
}
.previewDisplayName("Credentials Entered")
.snapshotPreferences(delay: 0.1)
.snapshotPreferences(delay: 1)
NavigationStack {
LoginScreen(context: unconfiguredViewModel.context)
}
.previewDisplayName("Unsupported")
.snapshotPreferences(delay: 0.1)
.snapshotPreferences(delay: 1)
}
static func makeViewModel(homeserverAddress: String = "matrix.org", withCredentials: Bool = false) -> LoginScreenViewModel {