Meshtastic-Apple/MeshtasticClient/Views/Messages/Channels.swift
Garth Vander Houwen 3827ff816e BLE Cleanup
2021-10-12 17:54:10 -07:00

49 lines
1.4 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")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 70, height: 70)
.foregroundColor(Color.blue)
.symbolRenderingMode(.hierarchical)
.padding(.trailing)
Text("Primary")
.font(.largeTitle)
}.padding()
}
}
}
.navigationTitle("Channels")
}
.navigationViewStyle(StackNavigationViewStyle())
}
}
struct MessageList_Previews: PreviewProvider {
static let meshData = MeshData()
static var previews: some View {
Group {
Channels()
}
}
}