33 lines
830 B
Swift
33 lines
830 B
Swift
//
|
|
// PeeringView.swift
|
|
// RippleChat
|
|
//
|
|
// Created by Sebastian Lenzlinger on 10.07.23.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct PeeringView: View {
|
|
@EnvironmentObject var dataStore: DataStore
|
|
@EnvironmentObject var btController: BluetoothController
|
|
@EnvironmentObject var btPeripheral: BluetoothPeripheral
|
|
|
|
var body: some View {
|
|
NavigationStack {
|
|
List(btController.peripheralNames, id: \.self) { peripheral in
|
|
Text(peripheral)
|
|
}
|
|
.navigationTitle("Peering")
|
|
.navigationViewStyle(StackNavigationViewStyle())
|
|
}
|
|
}
|
|
}
|
|
|
|
struct PeeringView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
PeeringView()
|
|
.environmentObject(BluetoothPeripheral())
|
|
.environmentObject(BluetoothController())
|
|
}
|
|
}
|