diff --git a/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetBundle.swift b/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetBundle.swift index 71407d0a..a0495876 100644 --- a/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetBundle.swift +++ b/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetBundle.swift @@ -8,10 +8,11 @@ import WidgetKit import SwiftUI - +#if !targetEnvironment(macCatalyst) @main struct ExampleWidgetBundle: WidgetBundle { var body: some Widget { ExampleWidgetLiveActivity() } } +#endif diff --git a/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetLiveActivity.swift b/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetLiveActivity.swift index 866ec180..e359a4c7 100644 --- a/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetLiveActivity.swift +++ b/example/IonicCapOneSignal/ios/App/ExampleWidget/ExampleWidgetLiveActivity.swift @@ -6,6 +6,7 @@ // Copyright © 2024 The Chromium Authors. All rights reserved. // +#if !targetEnvironment(macCatalyst) import ActivityKit import WidgetKit import SwiftUI @@ -64,3 +65,4 @@ struct ExampleWidgetLiveActivity: Widget { } } } +#endif