mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Add Email/Terms/ReCaptcha into the Authentication flow
Replace ReCaptcha navigation delegate with a WKUserContentController. Move callback property closures onto the MainActor. Show a loading indicator whilst waiting for the authentication service to start. Move nextUncompletedStage into FlowResult. Handle text field actions during authentication. Remove scroll view tweaks in server selection screen following EMS banner removal.
This commit is contained in:
@@ -25,21 +25,19 @@ import Introspect
|
||||
/// https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=2039%3A26415
|
||||
struct BorderedInputFieldStyle: TextFieldStyle {
|
||||
|
||||
@Environment(\.theme) var theme: ThemeSwiftUI
|
||||
@Environment(\.isEnabled) var isEnabled: Bool
|
||||
@Environment(\.theme) private var theme: ThemeSwiftUI
|
||||
@Environment(\.isEnabled) private var isEnabled: Bool
|
||||
|
||||
var isEditing: Bool = false
|
||||
var isError: Bool = false
|
||||
|
||||
private var borderColor: Color {
|
||||
if !isEnabled {
|
||||
return theme.colors.quinaryContent
|
||||
} else if isError {
|
||||
if isError {
|
||||
return theme.colors.alert
|
||||
} else if isEditing {
|
||||
return theme.colors.accent
|
||||
}
|
||||
return theme.colors.quarterlyContent
|
||||
return theme.colors.quinaryContent
|
||||
}
|
||||
|
||||
private var accentColor: Color {
|
||||
|
||||
Reference in New Issue
Block a user