19 lines
591 B
Swift
19 lines
591 B
Swift
import Foundation
|
|
import LocalData
|
|
|
|
extension StorageKeys {
|
|
/// Watch-only setting for vibration.
|
|
/// Grouped under Platform to highlight watch-only availability.
|
|
struct WatchVibrationKey: StorageKey {
|
|
typealias Value = Bool
|
|
|
|
let name = "watch_vibration_enabled"
|
|
let domain: StorageDomain = .userDefaults(suite: nil)
|
|
let security: SecurityPolicy = .none
|
|
let serializer: Serializer<Bool> = .json
|
|
let owner = "SampleApp"
|
|
let availability: PlatformAvailability = .watchOnly
|
|
let syncPolicy: SyncPolicy = .never
|
|
}
|
|
}
|