Preferences Picker titles

This commit is contained in:
Shadowfacts 2019-07-27 21:34:20 -04:00
parent 7d7b457575
commit a1c6a34f54
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
3 changed files with 8 additions and 3 deletions

View File

@ -17,7 +17,8 @@ struct AdvancedPrefsView : View {
Picker(selection: _statusContentType.binding, label: Text("Post Content Type")) { Picker(selection: _statusContentType.binding, label: Text("Post Content Type")) {
ForEach(StatusContentType.allCases, id: \.self) { type in ForEach(StatusContentType.allCases, id: \.self) { type in
Text(type.displayName).tag(type) Text(type.displayName).tag(type)
} }//.navigationBarTitle("Post Content Type")
// see FB6838291
} }
} }

View File

@ -23,7 +23,8 @@ struct BehaviorPrefsView : View {
Text(visibility.displayName) Text(visibility.displayName)
} }
.tag(visibility) .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) { Toggle(isOn: _automaticallySaveDrafts.binding) {
Text("Automatically Save Drafts") Text("Automatically Save Drafts")

View File

@ -36,7 +36,10 @@ struct SilentActionPrefs : View {
var body: some View { var body: some View {
List(Array(preferences.silentActions.keys), id: \.self) { source in List(Array(preferences.silentActions.keys), id: \.self) { source in
SilentActionPermissionCell(source: source) SilentActionPermissionCell(source: source)
}.listStyle(.grouped) }
.listStyle(.grouped)
// .navigationBarTitle("Silent Action Permissions")
// see FB6838291
// List(Array(silentActions.keys).identified(by: \.self)) { application in // List(Array(silentActions.keys).identified(by: \.self)) { application in
// Text(application) // Text(application)
//// Toggle(isOn: Binding(getValue: { self.silentActions[application] == .accepted }, setValue: { self.silentActions[application] = $0 ? .accepted : .rejected }), label: Text(application)) //// Toggle(isOn: Binding(getValue: { self.silentActions[application] == .accepted }, setValue: { self.silentActions[application] = $0 ? .accepted : .rejected }), label: Text(application))