mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
33 lines
587 B
Swift
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
|
|
// }
|
|
// }
|