Changed NavigationView to NavigationStack for better design on iPad
This commit is contained in:
parent
4b24048477
commit
8720640f8c
@ -130,6 +130,7 @@
|
|||||||
96454F1C2A558EBC0040BEBD /* ContentView.swift */,
|
96454F1C2A558EBC0040BEBD /* ContentView.swift */,
|
||||||
96BD33112A5C3FFC007A6E53 /* Views */,
|
96BD33112A5C3FFC007A6E53 /* Views */,
|
||||||
F581F59A2A5AE72F0081C383 /* BluetoothController.swift */,
|
F581F59A2A5AE72F0081C383 /* BluetoothController.swift */,
|
||||||
|
F5A4B1222A5D5F8B00F5AE01 /* BTPeripheral.swift */,
|
||||||
96454F1E2A558EBD0040BEBD /* Assets.xcassets */,
|
96454F1E2A558EBD0040BEBD /* Assets.xcassets */,
|
||||||
96454F202A558EBD0040BEBD /* Preview Content */,
|
96454F202A558EBD0040BEBD /* Preview Content */,
|
||||||
F5847B612A599BF4009E28D4 /* Body.swift */,
|
F5847B612A599BF4009E28D4 /* Body.swift */,
|
||||||
@ -137,7 +138,6 @@
|
|||||||
F5847B652A599EA4009E28D4 /* Feed.swift */,
|
F5847B652A599EA4009E28D4 /* Feed.swift */,
|
||||||
F5847B692A59AB24009E28D4 /* FeedStore.swift */,
|
F5847B692A59AB24009E28D4 /* FeedStore.swift */,
|
||||||
96BD330D2A5C254B007A6E53 /* TextApp.swift */,
|
96BD330D2A5C254B007A6E53 /* TextApp.swift */,
|
||||||
F5A4B1222A5D5F8B00F5AE01 /* BTPeripheral.swift */,
|
|
||||||
F5A4B1242A5D7A8D00F5AE01 /* DataStore.swift */,
|
F5A4B1242A5D7A8D00F5AE01 /* DataStore.swift */,
|
||||||
);
|
);
|
||||||
path = RippleChat;
|
path = RippleChat;
|
||||||
|
|||||||
@ -14,11 +14,12 @@ struct PeeringView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Text("Peering View")
|
Text("Peering View")
|
||||||
NavigationView {
|
NavigationStack {
|
||||||
List(bluetoothController.peripheralNames, id: \.self) { peripheral in
|
List(bluetoothController.peripheralNames, id: \.self) { peripheral in
|
||||||
Text(peripheral)
|
Text(peripheral)
|
||||||
}
|
}
|
||||||
.navigationTitle("Peripherals")
|
.navigationTitle("Peripherals")
|
||||||
|
.navigationViewStyle(StackNavigationViewStyle())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,7 +16,7 @@ struct SettingsView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|
||||||
NavigationView {
|
NavigationStack {
|
||||||
List {
|
List {
|
||||||
Section(header: Text("Personal Feed ID")) {
|
Section(header: Text("Personal Feed ID")) {
|
||||||
Label(dataStore.personalID, systemImage: "person.crop.circle")
|
Label(dataStore.personalID, systemImage: "person.crop.circle")
|
||||||
@ -28,6 +28,7 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationTitle("Settings")
|
.navigationTitle("Settings")
|
||||||
|
.navigationViewStyle(StackNavigationViewStyle())
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .confirmationAction) {
|
ToolbarItem(placement: .confirmationAction) {
|
||||||
Button("Edit") {
|
Button("Edit") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user