Expose client tag toggle in settings

Add a Privacy section in Appearance settings allowing users to disable
client tag publishing if they prefer not to identify Damus when posting.

Ref: https://github.com/damus-io/damus/issues/3323
Signed-off-by: alltheseas <alltheseas@users.noreply.github.com>
This commit is contained in:
alltheseas
2026-02-02 12:15:27 -06:00
committed by Daniel D’Aquino
parent ec28822451
commit 7f2c575f20

View File

@@ -160,6 +160,14 @@ struct AppearanceSettingsView: View {
} }
} }
Section(header: Text("Privacy", comment: "Section header for privacy related settings")) {
Toggle(NSLocalizedString("Share Damus client tag", comment: "Setting to publish a client tag indicating Damus posted the note"), isOn: $settings.publish_client_tag)
.toggleStyle(.switch)
Text("Client tags can help other apps understand new kinds of events. Turn this off if you prefer not to identify Damus when posting.", comment: "Description for the client tag privacy toggle.")
.font(.footnote)
.foregroundStyle(.secondary)
}
// MARK: - Profiles // MARK: - Profiles
Section( Section(
header: Text("Profiles", comment: "Section title for profile view configuration."), header: Text("Profiles", comment: "Section title for profile view configuration."),