Add setting to hide reactions

Changelog-Added: Add setting to hide reactions
This commit is contained in:
2023-04-17 03:04:18 +02:00
committed by William Casarin
parent 681e0f0be9
commit 66641fc9ae
14 changed files with 84 additions and 42 deletions

View File

@@ -14,6 +14,14 @@ struct AppearanceSettingsView: View {
var body: some View {
Form {
Section(header: Text(NSLocalizedString("Reactions", comment: "Section header for reaction settings"))) {
Toggle(NSLocalizedString("Hide Reactions", comment: "Setting to hide reactions."), isOn: $settings.hide_reactions)
.toggleStyle(.switch)
.onChange(of: settings.hide_reactions) { newVal in
notify(.hide_reactions, newVal)
}
}
Section(header: Text(NSLocalizedString("Text Truncation", comment: "Section header for damus text truncation user configuration"))) {
Toggle(NSLocalizedString("Truncate timeline text", comment: "Setting to truncate text in timeline"), isOn: $settings.truncate_timeline_text)
.toggleStyle(.switch)