mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Cleanup
This commit is contained in:
parent
a4c1fc4fe6
commit
0997cc7dba
3 changed files with 2 additions and 9 deletions
|
|
@ -5,14 +5,6 @@ import SwiftUI
|
|||
import MapKit
|
||||
import CocoaMQTT
|
||||
|
||||
public protocol DeviceConnection: AnyObject {
|
||||
var isSubscribed: Bool { get }
|
||||
var invalidVersion: Bool { get }
|
||||
//var handledDeepLinks: [DeepLink.Type] { get }
|
||||
//func canHandle(deepLink: DeepLink) -> Bool
|
||||
//func handle(deepLink: DeepLink)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------------
|
||||
// Meshtastic BLE Device Manager
|
||||
// ---------------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ class MeshtasticAppDelegate: NSObject, UIApplicationDelegate, UNUserNotification
|
|||
AppState.shared.navigationPath = deepLink
|
||||
if targetValue == "map" {
|
||||
AppState.shared.tabSelection = Tab.map
|
||||
|
||||
} else if targetValue == "message" {
|
||||
AppState.shared.tabSelection = Tab.messages
|
||||
} else if targetValue == "nodes" {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import MapKit
|
|||
@available(iOS 17.0, macOS 14.0, *)
|
||||
struct MeshMapContent: MapContent {
|
||||
|
||||
@StateObject var appState = AppState.shared
|
||||
/// Parameters
|
||||
@Binding var showUserLocation: Bool
|
||||
@AppStorage("meshMapShowNodeHistory") private var showNodeHistory = false
|
||||
|
|
@ -92,6 +93,7 @@ struct MeshMapContent: MapContent {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// Node History and Route Lines for favorites
|
||||
if position.nodePosition?.favorite ?? false {
|
||||
if showRouteLines {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue