Meshtastic-Apple/MeshtasticClient/Helpers/Preferences.swift
2021-12-25 23:48:12 -08:00

33 lines
587 B
Swift

//
// 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
// }
// }