mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
45 lines
1.2 KiB
Swift
45 lines
1.2 KiB
Swift
import Foundation
|
|
import SwiftUI
|
|
import CoreBluetooth
|
|
|
|
struct Channels: View {
|
|
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
|
|
struct MessageList_Previews: PreviewProvider {
|
|
static let meshData = MeshData()
|
|
|
|
static var previews: some View {
|
|
Group {
|
|
Channels()
|
|
}
|
|
}
|
|
}
|