Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- /// The application settings protocol.
- public protocol Settings {
- /// The current application language.
- var language: String? { get set }
- }
- public extension UserDefaults: Settings {
- /// The current application language.
- var language: String? {
- get { return string(forKey: #function) }
- set { set(newValue, forKey: #function) }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement