mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Additional file cleanup
This commit is contained in:
parent
f4e52d3799
commit
6559b2a9fd
10 changed files with 14 additions and 200 deletions
|
|
@ -7,13 +7,9 @@ import Foundation
|
|||
import Combine
|
||||
|
||||
final class ModelData: ObservableObject {
|
||||
@Published var devices: [Device] = load("deviceData.json")
|
||||
// @Published var devices: [Device] = load("deviceData.json")
|
||||
|
||||
@Published var nodes: [NodeInfoModel] = load("packets.json")
|
||||
|
||||
var nearby: [Device] {
|
||||
devices
|
||||
}
|
||||
}
|
||||
|
||||
func load<T: Decodable>(_ filename: String) -> T {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue