mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
iOS 15 updates, icons fixes, new data models
This commit is contained in:
parent
71b9aa5f2e
commit
79851345fa
17 changed files with 373 additions and 50 deletions
|
|
@ -5,15 +5,13 @@ Storage for model data.
|
|||
|
||||
import Foundation
|
||||
import Combine
|
||||
import CoreBluetooth
|
||||
import CoreData
|
||||
|
||||
final class ModelData: ObservableObject {
|
||||
|
||||
@Published var nodes: [NodeInfoModel] = load("packets.json")
|
||||
|
||||
@Published var nodes: [NodeInfoModel] = load("nodeinfomodel.json")
|
||||
|
||||
// @ObservedObject var connectedPeripheral: CBPeripheral!
|
||||
//@Published var connectedPeripheral: CBPeripheral!
|
||||
|
||||
}
|
||||
|
||||
func load<T: Decodable>(_ filename: String) -> T {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue