Additional file cleanup

This commit is contained in:
Garth Vander Houwen 2021-09-18 16:28:35 -07:00
parent f4e52d3799
commit 6559b2a9fd
10 changed files with 14 additions and 200 deletions

View file

@ -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 {