mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
MESSENGER-3157 third notification settings option
This commit is contained in:
committed by
Frank Rotermund
parent
a50402d361
commit
89f8644abc
@@ -22,6 +22,7 @@ struct FormPickerItem: View {
|
||||
@Environment(\.theme) var theme: ThemeSwiftUI
|
||||
|
||||
var title: String
|
||||
var subtitle: String?
|
||||
var selected: Bool
|
||||
var onTap: TapCallback?
|
||||
|
||||
@@ -32,7 +33,16 @@ struct FormPickerItem: View {
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
Text(title)
|
||||
if let subtitle = subtitle, !subtitle.isEmpty && BWIBuildSettings.shared.notificationSettingsLikeAndroidAndWeb {
|
||||
VStack(alignment: .leading, spacing: 4) {
|
||||
Text(title)
|
||||
Text(subtitle)
|
||||
.font(.footnote)
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
} else {
|
||||
Text(title)
|
||||
}
|
||||
Spacer()
|
||||
if selected {
|
||||
Image("checkmark")
|
||||
|
||||
Reference in New Issue
Block a user