1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-22 13:39:59 +01:00
mastodon-app-ufficiale-ipho.../MastodonSDK/Sources/MastodonCommon/Preference/Preference+Theme.swift
2023-03-16 09:05:41 +01:00

26 lines
495 B
Swift

//
// Preference+Theme.swift
//
//
// Created by MainasuK on 2022-4-13.
//
import UIKit
import MastodonExtension
public enum ThemeName: String, CaseIterable {
case system
}
extension UserDefaults {
@objc public dynamic var currentThemeNameRawValue: String {
get {
register(defaults: [#function: ThemeName.system.rawValue])
return string(forKey: #function) ?? ThemeName.system.rawValue
}
set { self[#function] = newValue }
}
}