mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
50 lines
1.3 KiB
Swift
50 lines
1.3 KiB
Swift
import Foundation
|
|
import SwiftUI
|
|
import CoreBluetooth
|
|
|
|
struct Channels: View {
|
|
|
|
// Message Data and Bluetooth
|
|
@EnvironmentObject var messageData: MessageData
|
|
@EnvironmentObject var bleManager: BLEManager
|
|
|
|
var body: some View {
|
|
NavigationView {
|
|
|
|
GeometryReader { bounds in
|
|
|
|
NavigationLink(destination: Messages()) {
|
|
|
|
List{
|
|
|
|
HStack {
|
|
|
|
Image(systemName: "dial.max.fill")
|
|
.font(.system(size: 62))
|
|
.symbolRenderingMode(.hierarchical)
|
|
.padding(.trailing)
|
|
.foregroundColor(.accentColor)
|
|
|
|
Text("Primary")
|
|
.font(.largeTitle)
|
|
|
|
}.padding()
|
|
}
|
|
}
|
|
}
|
|
.navigationTitle("Channels")
|
|
}
|
|
.navigationViewStyle(DoubleColumnNavigationViewStyle())
|
|
}
|
|
}
|
|
|
|
struct MessageList_Previews: PreviewProvider {
|
|
|
|
static let meshData = MeshData()
|
|
|
|
static var previews: some View {
|
|
Group {
|
|
Channels()
|
|
}
|
|
}
|
|
}
|