// // Settings.swift // dns // // Created by Benjamin Erhart on 15.04.26. // import Foundation class Settings { private static let blocklistKey = "blocklist" private static let defaults = UserDefaults.standard class var blocklist: BlocklistOption { get { BlocklistOption(rawValue: defaults.string(forKey: blocklistKey) ?? BlocklistOption.secure.rawValue) ?? .secure } set { defaults.set(newValue.rawValue, forKey: blocklistKey) } } }