mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 11:46:58 +02:00
Feature/4772 add accessibility declaration
This commit is contained in:
committed by
Frank Rotermund
parent
b4ad32afb2
commit
273017eafa
@@ -93,6 +93,13 @@ struct AuthenticationLoginScreen: View {
|
||||
.readableFrame()
|
||||
.padding(.horizontal, 16)
|
||||
}
|
||||
|
||||
if BWIBuildSettings.shared.bumLoginFlowLayout && BWIBuildSettings.shared.bwiShowAccessibilityDeclaration {
|
||||
accessibilityDeclaration
|
||||
.frame(alignment: .bottom)
|
||||
.padding(.bottom, 10)
|
||||
}
|
||||
|
||||
if BWIBuildSettings.shared.bumLoginFlowLayout {
|
||||
dataPrivacyForm
|
||||
.frame(alignment: .bottom)
|
||||
@@ -305,6 +312,19 @@ struct AuthenticationLoginScreen: View {
|
||||
return BWIBuildSettings.shared.bwiLoginFlowLayout ? BWIL10n.authUserIdPlaceholder : BWIL10n.authenticationLoginUsername
|
||||
}
|
||||
}
|
||||
|
||||
// bwi: Accessibility declaration
|
||||
var accessibilityDeclaration: some View {
|
||||
Button(action: {
|
||||
viewModel.send(viewAction: .accessibilityDeclaration)
|
||||
}, label: {
|
||||
Text(BWIL10n.bwiAccessibilityDeclarationButtonTitle)
|
||||
.font(theme.fonts.footnote)
|
||||
.foregroundColor(.blue)
|
||||
.underline()
|
||||
})
|
||||
.padding([.horizontal], 20)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
Reference in New Issue
Block a user