Post

Replies

Boosts

Views

Activity

Control Center widget won't show snippet view
Has anyone been able to create a Control Center widget that opens a snippet view? There are stock Control Center widgets that do this, but I haven't been able to get it to work. Here's what I tried: struct SnippetButton: ControlWidget { var body: some ControlWidgetConfiguration { StaticControlConfiguration( kind: "xxx.xxx.snippetWidget" ) { ControlWidgetButton(action: SnippetIntent()) { Label("Show Snippet", systemImage: "map.fill") } } .displayName(LocalizedStringResource("Show Snippet")) .description("Show a snippet.") } } struct SnippetIntent: ControlConfigurationIntent { static var title: LocalizedStringResource = "Show a snippet" static var description = IntentDescription("Show a snippet with some text.") @MainActor func perform() async throws -> some IntentResult & ProvidesDialog & ShowsSnippetView { return .result(dialog: IntentDialog("Hello!"), view: SnippetView()) } } struct SnippetView: View { var body: some View { Text("Hello!") } }
4
2
1.3k
Feb ’26
WidgetKit complications do not appear on watchOS 11 beta 5
Third-party WidgetKit complications on watchOS 11 beta 5 are not appearing in the list of available complications. They have also disappeared from watch faces where they were installed. The exact same complications were working fine on earlier betas. This is happening on device, but not in simulator. This issue may be related to FB14684253, which was fixed with the release of Xcode beta 5. However, Xcode beta 5 does not fix the issue on Apple Watch. As a sanity check, I also tried with the Backyard Birds sample project, and the complications for that app aren't appearing on device either. Filed as FB14689021.
3
2
1.2k
Aug ’24
WidgetKit widgets crashing on iOS 18 beta 5
My app’s WidgetKit widgets are all crashing on iOS 18 beta 5. They were working just fine on earlier betas. This is happening across both Home and Lock Screen widgets. It's an EXC_BAD_ACCESS crash that seems to be happening deep within WidgetKit. I've seen other developers posting about this on social media, so it's not just me. Wanted to get this flagged ASAP as it's very late in the beta cycle now... Filed as FB14684253.
2
3
1k
Aug ’24
UISearchBar shape on visionOS
In visionOS beta 6, the height of the text field in the UISearchBar was dramatically increased without changing the corner radius to match, so now my search bar looks a bit weird when it's placed near the corner of the app window (which has a very large corner radius). I would prefer a pill shape (i.e. completely rounded corners) for the UISearchBar's textfield if it's going to be that tall. Is there a way to change the corner radius of UISearchBar's text field on visionOS? The method that works on iOS doesn't appear to work on visionOS, I assume because of the inset appearance.
0
0
572
Nov ’23
UISlider with step buttons on visionOS
In the Settings app on visionOS, the slider used in the Display > Text Size screen has buttons arrayed along the track so that you can quickly jump the slider to different text sizes without having to slide the selector manually. Is this a completely custom component, or is there a way to make UISlider behave in a similar way in our own apps?
0
0
463
Nov ’23
Apple Watch crash logs not showing up in Organizer in Xcode
For the past several months, I have not been getting any crash logs for the Apple Watch (or any other extension, for that matter) in the Organizer in Xcode. Has anyone else experienced this? Is there some setting specific to extensions that I need to toggle to ensure crash reports get sent to Xcode? Like turning off bitcode or something like that?
1
0
1.7k
Dec ’22
WeatherKit returning blank response
Some of my users are getting "blank" responses from WeatherKit's REST API. The server is returning a 200 response, but the data returned is just a "{}" string. This issue only affects specific users - when I try the same request myself, with the exact same location and query parameters, I get the data back just fine. Has anyone else experienced an issue like this?
6
0
1.8k
Sep ’22
Auto-generated Intents code contains thousands of warnings in Xcode 13 beta
My project has auto-generated Swift code for Intents in my "ProjectName-Swift.h" file. In Xcode 12, this file had zero warnings, but in Xcode 13 it is filled with thousands of warnings. About half of them are Block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) - the other half are Multiple declarations of method 'handleIntent:completion:' found and ignored. I have tried cleaning my project and deleting the Derived Data folder so far, but still getting the same errors. Since these are auto-generated files, I can't go in and fix the errors myself. Has anyone else seen this on the Xcode 13 beta? Or have any idea how to fix it?
25
1
1.0.0k
Jun ’22
Control Center widget won't show snippet view
Has anyone been able to create a Control Center widget that opens a snippet view? There are stock Control Center widgets that do this, but I haven't been able to get it to work. Here's what I tried: struct SnippetButton: ControlWidget { var body: some ControlWidgetConfiguration { StaticControlConfiguration( kind: "xxx.xxx.snippetWidget" ) { ControlWidgetButton(action: SnippetIntent()) { Label("Show Snippet", systemImage: "map.fill") } } .displayName(LocalizedStringResource("Show Snippet")) .description("Show a snippet.") } } struct SnippetIntent: ControlConfigurationIntent { static var title: LocalizedStringResource = "Show a snippet" static var description = IntentDescription("Show a snippet with some text.") @MainActor func perform() async throws -> some IntentResult & ProvidesDialog & ShowsSnippetView { return .result(dialog: IntentDialog("Hello!"), view: SnippetView()) } } struct SnippetView: View { var body: some View { Text("Hello!") } }
Replies
4
Boosts
2
Views
1.3k
Activity
Feb ’26
WidgetKit complications do not appear on watchOS 11 beta 5
Third-party WidgetKit complications on watchOS 11 beta 5 are not appearing in the list of available complications. They have also disappeared from watch faces where they were installed. The exact same complications were working fine on earlier betas. This is happening on device, but not in simulator. This issue may be related to FB14684253, which was fixed with the release of Xcode beta 5. However, Xcode beta 5 does not fix the issue on Apple Watch. As a sanity check, I also tried with the Backyard Birds sample project, and the complications for that app aren't appearing on device either. Filed as FB14689021.
Replies
3
Boosts
2
Views
1.2k
Activity
Aug ’24
WidgetKit widgets crashing on iOS 18 beta 5
My app’s WidgetKit widgets are all crashing on iOS 18 beta 5. They were working just fine on earlier betas. This is happening across both Home and Lock Screen widgets. It's an EXC_BAD_ACCESS crash that seems to be happening deep within WidgetKit. I've seen other developers posting about this on social media, so it's not just me. Wanted to get this flagged ASAP as it's very late in the beta cycle now... Filed as FB14684253.
Replies
2
Boosts
3
Views
1k
Activity
Aug ’24
UISearchBar shape on visionOS
In visionOS beta 6, the height of the text field in the UISearchBar was dramatically increased without changing the corner radius to match, so now my search bar looks a bit weird when it's placed near the corner of the app window (which has a very large corner radius). I would prefer a pill shape (i.e. completely rounded corners) for the UISearchBar's textfield if it's going to be that tall. Is there a way to change the corner radius of UISearchBar's text field on visionOS? The method that works on iOS doesn't appear to work on visionOS, I assume because of the inset appearance.
Replies
0
Boosts
0
Views
572
Activity
Nov ’23
UISlider with step buttons on visionOS
In the Settings app on visionOS, the slider used in the Display > Text Size screen has buttons arrayed along the track so that you can quickly jump the slider to different text sizes without having to slide the selector manually. Is this a completely custom component, or is there a way to make UISlider behave in a similar way in our own apps?
Replies
0
Boosts
0
Views
463
Activity
Nov ’23
Apple Watch crash logs not showing up in Organizer in Xcode
For the past several months, I have not been getting any crash logs for the Apple Watch (or any other extension, for that matter) in the Organizer in Xcode. Has anyone else experienced this? Is there some setting specific to extensions that I need to toggle to ensure crash reports get sent to Xcode? Like turning off bitcode or something like that?
Replies
1
Boosts
0
Views
1.7k
Activity
Dec ’22
WeatherKit returning blank response
Some of my users are getting "blank" responses from WeatherKit's REST API. The server is returning a 200 response, but the data returned is just a "{}" string. This issue only affects specific users - when I try the same request myself, with the exact same location and query parameters, I get the data back just fine. Has anyone else experienced an issue like this?
Replies
6
Boosts
0
Views
1.8k
Activity
Sep ’22
Auto-generated Intents code contains thousands of warnings in Xcode 13 beta
My project has auto-generated Swift code for Intents in my "ProjectName-Swift.h" file. In Xcode 12, this file had zero warnings, but in Xcode 13 it is filled with thousands of warnings. About half of them are Block pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) - the other half are Multiple declarations of method 'handleIntent:completion:' found and ignored. I have tried cleaning my project and deleting the Derived Data folder so far, but still getting the same errors. Since these are auto-generated files, I can't go in and fix the errors myself. Has anyone else seen this on the Xcode 13 beta? Or have any idea how to fix it?
Replies
25
Boosts
1
Views
1.0.0k
Activity
Jun ’22