mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 00:25:35 +00:00
Add explanations to some settings
This commit is contained in:
parent
b19a5706e2
commit
7eeaf4d902
2 changed files with 33 additions and 5 deletions
|
@ -39,6 +39,7 @@ struct SettingsTabs: View {
|
||||||
accountsSection
|
accountsSection
|
||||||
generalSection
|
generalSection
|
||||||
otherSections
|
otherSections
|
||||||
|
AISection
|
||||||
cacheSection
|
cacheSection
|
||||||
}
|
}
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
|
@ -228,9 +229,6 @@ struct SettingsTabs: View {
|
||||||
}
|
}
|
||||||
.disabled(preferences.preferredBrowser != PreferredBrowser.inAppSafari)
|
.disabled(preferences.preferredBrowser != PreferredBrowser.inAppSafari)
|
||||||
#endif
|
#endif
|
||||||
Toggle(isOn: $preferences.isOpenAIEnabled) {
|
|
||||||
Label("settings.other.hide-openai", systemImage: "faxmachine")
|
|
||||||
}
|
|
||||||
Toggle(isOn: $preferences.isSocialKeyboardEnabled) {
|
Toggle(isOn: $preferences.isSocialKeyboardEnabled) {
|
||||||
Label("settings.other.social-keyboard", systemImage: "keyboard")
|
Label("settings.other.social-keyboard", systemImage: "keyboard")
|
||||||
}
|
}
|
||||||
|
@ -250,6 +248,23 @@ struct SettingsTabs: View {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ViewBuilder
|
||||||
|
private var AISection: some View {
|
||||||
|
@Bindable var preferences = preferences
|
||||||
|
Section {
|
||||||
|
Toggle(isOn: $preferences.isOpenAIEnabled) {
|
||||||
|
Label("settings.other.hide-openai", systemImage: "faxmachine")
|
||||||
|
}
|
||||||
|
} header: {
|
||||||
|
Text("AI")
|
||||||
|
} footer: {
|
||||||
|
Text("Disable to hide AI assisted tools options such as copywritting and alt image description generated from AI. Use OpenAI API. See our Privacy Policy for more information.")
|
||||||
|
}
|
||||||
|
#if !os(visionOS)
|
||||||
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
private var appSection: some View {
|
private var appSection: some View {
|
||||||
Section {
|
Section {
|
||||||
#if !targetEnvironment(macCatalyst) && !os(visionOS)
|
#if !targetEnvironment(macCatalyst) && !os(visionOS)
|
||||||
|
@ -340,7 +355,7 @@ struct SettingsTabs: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
private var cacheSection: some View {
|
private var cacheSection: some View {
|
||||||
Section("settings.section.cache") {
|
Section {
|
||||||
if cachedRemoved {
|
if cachedRemoved {
|
||||||
Text("action.done")
|
Text("action.done")
|
||||||
.transition(.move(edge: .leading))
|
.transition(.move(edge: .leading))
|
||||||
|
@ -352,6 +367,10 @@ struct SettingsTabs: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} header: {
|
||||||
|
Text("settings.section.cache")
|
||||||
|
} footer: {
|
||||||
|
Text("Remove all cached images and videos")
|
||||||
}
|
}
|
||||||
#if !os(visionOS)
|
#if !os(visionOS)
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
|
|
|
@ -20436,6 +20436,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"AI" : {
|
||||||
|
|
||||||
},
|
},
|
||||||
"alert.button.ok" : {
|
"alert.button.ok" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
@ -23839,6 +23842,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Disable to hide AI assisted tools options such as copywritting and alt image description generated from AI. Use OpenAI API. See our Privacy Policy for more information." : {
|
||||||
|
|
||||||
},
|
},
|
||||||
"enum.avatar-position.leading" : {
|
"enum.avatar-position.leading" : {
|
||||||
"comment" : "MARK: Enums",
|
"comment" : "MARK: Enums",
|
||||||
|
@ -42331,6 +42337,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Remove all cached images and videos" : {
|
||||||
|
|
||||||
},
|
},
|
||||||
"report.action.send" : {
|
"report.action.send" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
|
Loading…
Reference in a new issue