added an FF for the floating date

This commit is contained in:
Mauro Romito
2026-03-27 17:12:17 +01:00
committed by Mauro
parent ca149d93f9
commit 9c043eb2b8
3 changed files with 11 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ final class AppSettings {
case focusEventOnNotificationTap
case linkNewDeviceEnabled
case liveLocationSharingEnabled
case floatingTimelineDateEnabled
// Doug's tweaks 🔧
case hideUnreadMessagesBadge
@@ -436,6 +437,9 @@ final class AppSettings {
@UserPreference(key: UserDefaultsKeys.liveLocationSharingEnabled, defaultValue: false, storageType: .userDefaults(store))
var liveLocationSharingEnabled
@UserPreference(key: UserDefaultsKeys.floatingTimelineDateEnabled, defaultValue: false, storageType: .userDefaults(store))
var floatingTimelineDateEnabled
@UserPreference(key: UserDefaultsKeys.developerOptionsEnabled, defaultValue: appBuildType == .debug, storageType: .userDefaults(store))
var developerOptionsEnabled
}

View File

@@ -69,6 +69,8 @@ protocol DeveloperOptionsProtocol: AnyObject {
var linkNewDeviceEnabled: Bool { get set }
var liveLocationSharingEnabled: Bool { get set }
var floatingTimelineDateEnabled: Bool { get set }
}
extension AppSettings: DeveloperOptionsProtocol { }

View File

@@ -80,6 +80,11 @@ struct DeveloperOptionsScreen: View {
Toggle(isOn: $context.liveLocationSharingEnabled) {
Text("Live location sharing")
}
Toggle(isOn: $context.floatingTimelineDateEnabled) {
Text("Floating timeline date")
Text("Shows a floating date badge while scrolling the timeline.")
}
}
Section("Join rules") {