forked from shadowfacts/Tusker
Preferences Picker titles
This commit is contained in:
parent
7d7b457575
commit
a1c6a34f54
|
@ -17,7 +17,8 @@ struct AdvancedPrefsView : View {
|
|||
Picker(selection: _statusContentType.binding, label: Text("Post Content Type")) {
|
||||
ForEach(StatusContentType.allCases, id: \.self) { type in
|
||||
Text(type.displayName).tag(type)
|
||||
}
|
||||
}//.navigationBarTitle("Post Content Type")
|
||||
// see FB6838291
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,8 @@ struct BehaviorPrefsView : View {
|
|||
Text(visibility.displayName)
|
||||
}
|
||||
.tag(visibility)
|
||||
}
|
||||
}//.navigationBarTitle("Default Post Visibility")
|
||||
// navbar title on the ForEach is currently incorrectly applied when the picker is not expanded, see FB6838291
|
||||
}
|
||||
Toggle(isOn: _automaticallySaveDrafts.binding) {
|
||||
Text("Automatically Save Drafts")
|
||||
|
|
|
@ -36,7 +36,10 @@ struct SilentActionPrefs : View {
|
|||
var body: some View {
|
||||
List(Array(preferences.silentActions.keys), id: \.self) { source in
|
||||
SilentActionPermissionCell(source: source)
|
||||
}.listStyle(.grouped)
|
||||
}
|
||||
.listStyle(.grouped)
|
||||
// .navigationBarTitle("Silent Action Permissions")
|
||||
// see FB6838291
|
||||
// List(Array(silentActions.keys).identified(by: \.self)) { application in
|
||||
// Text(application)
|
||||
//// Toggle(isOn: Binding(getValue: { self.silentActions[application] == .accepted }, setValue: { self.silentActions[application] = $0 ? .accepted : .rejected }), label: Text(application))
|
||||
|
|
Loading…
Reference in New Issue