mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Catalyst fixes
This commit is contained in:
parent
b1cd2d0579
commit
3bd3fab498
2 changed files with 14 additions and 0 deletions
|
|
@ -26,7 +26,9 @@ struct Connect: View {
|
|||
@State var isUnsetRegion = false
|
||||
@State var invalidFirmwareVersion = false
|
||||
@State var showSecurityVersionNag = false
|
||||
#if !targetEnvironment(macCatalyst)
|
||||
@State var liveActivityStarted = false
|
||||
#endif
|
||||
@ObservedObject var manualConnections = ManualConnectionList.shared
|
||||
|
||||
var body: some View {
|
||||
|
|
|
|||
|
|
@ -61,6 +61,18 @@ struct MapLegend: View {
|
|||
.navigationTitle("Map Legend")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
}
|
||||
#if targetEnvironment(macCatalyst)
|
||||
Spacer()
|
||||
Button {
|
||||
dismiss()
|
||||
} label: {
|
||||
Label("Close", systemImage: "xmark")
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.buttonBorderShape(.capsule)
|
||||
.controlSize(.large)
|
||||
.padding(.bottom)
|
||||
#endif
|
||||
}
|
||||
|
||||
// MARK: - Sections
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue