// // Preferences.swift // MeshtasticClient // // Created by Garth Vander Houwen on 12/16/21. // // import Foundation // import Combine // import SwiftUI // // class Prefs // { // private let defaults = UserDefaults.standard // // private let keyIntExample = "intExample" // // var intExample = { // set { // defaults.setValue(newValue, forKey: keyIntExample) // } // get { // return defaults.integer(forKey: keyIntExample) // } // } // // class var shared: Prefs { // struct Static { // static let instance = Prefs() // } // // return Static.instance // } // }