From 5aa0d6c3e14f3e00ae1b9469704ac2c34354e1d5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 14 May 2023 20:49:56 -0700 Subject: [PATCH] settings: add donation_percent to settings This will be used in damus donations splits --- damus/Models/UserSettingsStore.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/damus/Models/UserSettingsStore.swift b/damus/Models/UserSettingsStore.swift index 08d29593..29962a6a 100644 --- a/damus/Models/UserSettingsStore.swift +++ b/damus/Models/UserSettingsStore.swift @@ -143,6 +143,9 @@ class UserSettingsStore: ObservableObject { @Setting(key: "disable_animation", default_value: UIAccessibility.isReduceMotionEnabled) var disable_animation: Bool + + @Setting(key: "donation_percent", default_value: 0) + var donation_percent: Int // Helper for inverse of disable_animation. // disable_animation was introduced as a setting first, but it's more natural for the settings UI to show the inverse.