Catalyst fixes

This commit is contained in:
Garth Vander Houwen 2026-04-18 10:49:39 -07:00
parent b1cd2d0579
commit 3bd3fab498
2 changed files with 14 additions and 0 deletions

View file

@ -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 {

View file

@ -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