mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
27 lines
587 B
Swift
27 lines
587 B
Swift
//
|
|
// MeshtasticClientApp.swift
|
|
// MeshtasticClient
|
|
//
|
|
// Created by Garth Vander Houwen on 8/18/21.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct MeshtasticClientApp: App {
|
|
|
|
@ObservedObject private var meshData: MeshData = MeshData()
|
|
@ObservedObject private var bleManager: BLEManager = BLEManager()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
.environmentObject(meshData)
|
|
.environmentObject(bleManager)
|
|
.onAppear{
|
|
meshData.load()
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|