Post

Replies

Boosts

Views

Activity

Reply to How to use core spotlight ?
I replied to this, but my reply seems to have disappeared... Here we go (again): (And now it's appeared. Apple, issues with the forums after your changes overnight?) Aside from printing nothing (""), I think you're doing this in the wrong place. I have this in my main app's WindowGroup. It just loads the PhoneView: var body: some Scene { WindowGroup { PhoneView() .environment(modelData) // The difference is that I'm not continuing the Spotlight activity here, unlike you. } } struct PhoneView: View { var body: some View { VStack { // Blah blah blah } .onContinueUserActivity(CSSearchableItemActionType, perform: handleSpotlight) } private func handleSpotlight(userActivity: NSUserActivity) { guard let uniqueIdentifier = userActivity.userInfo?[CSSearchableItemActivityIdentifier] as? String else { return } if(!uniqueIdentifier.isEmpty) { // Handle the Spotlight activity } } }
Mar ’25
Reply to Merge 2 Apple IDs
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Mar ’25
Reply to iOS 18.4 beta 4 tipkit crash
Might be your code. Show us the code that's crashing and we'll see if we can help. If you think it's definitely a bug, then you should raise it in the normal way at https://feedbackassistant.apple.com/ You can post the FB number here if you like.
Topic: UI Frameworks SubTopic: General Tags:
Mar ’25
Reply to Genmoji not working
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Mar ’25
Reply to How to use core spotlight ?
How would you know it never gets triggered? You aren't printing anything to the console. Anyway, in my apps I have the WindowGroup set up like this: var body: some Scene { WindowGroup { PhoneView() .environment(modelData) } } And then, in the PhoneView() I have this: var body: some View { ZStack { // Whatever... } .onContinueUserActivity(CSSearchableItemActionType, perform: handleSpotlight) // blah blah blah... } private func handleSpotlight(userActivity: NSUserActivity) { guard let uniqueIdentifier = userActivity.userInfo?[CSSearchableItemActivityIdentifier] as? String else { return } // Handle the activity... }
Mar ’25
Reply to Safari extension doesn't load
Is this an iOS app with a Safari extension, or just a Safari extension? I know that, in an iOS app, you have to build the iOS app so the extension is included, and then build and run the extension. If it's just a Safari extension, then I'm afraid I don't know.
Topic: Safari & Web SubTopic: General Tags:
Mar ’25
Reply to What is best practice for the app's image format & is there a maximun /minimum number of items the app can contains
You might have to rephrase your question, as I'm not entirely sure what you're asking. If you want to know about app icons you can get all the required info here: https://developer.apple.com/design/human-interface-guidelines/app-icons If you're talking about images in general, you can use anything as long as the code can read it, but I stick with PNG and JPG formats. As for there being a minimum number of 'items', do you mean images? Why does it matter? The minimum would be zero, and the maximum would whatever memory your app uses and file sizes. It's not really an easily-answerable question. Perhaps, if you refine your question you might get a better, more relevant answer.
Topic: Design SubTopic: General
Mar ’25
Reply to The Order CSS property
Have you raised a Feedback report? If not, please do so at https://feedbackassistant.apple.com/ then post the FB number here.
Topic: Safari & Web SubTopic: General
Replies
Boosts
Views
Activity
Mar ’25
Reply to How to use core spotlight ?
I replied to this, but my reply seems to have disappeared... Here we go (again): (And now it's appeared. Apple, issues with the forums after your changes overnight?) Aside from printing nothing (""), I think you're doing this in the wrong place. I have this in my main app's WindowGroup. It just loads the PhoneView: var body: some Scene { WindowGroup { PhoneView() .environment(modelData) // The difference is that I'm not continuing the Spotlight activity here, unlike you. } } struct PhoneView: View { var body: some View { VStack { // Blah blah blah } .onContinueUserActivity(CSSearchableItemActionType, perform: handleSpotlight) } private func handleSpotlight(userActivity: NSUserActivity) { guard let uniqueIdentifier = userActivity.userInfo?[CSSearchableItemActivityIdentifier] as? String else { return } if(!uniqueIdentifier.isEmpty) { // Handle the Spotlight activity } } }
Replies
Boosts
Views
Activity
Mar ’25
Reply to FairPlay-Protected HLS Files Not Transferred via Quick Start
No need to create a second post to change it. Just edit the post within the first hour. If you're outside of that hour, then just reply to the original.
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Merge 2 Apple IDs
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Mar ’25
Reply to iOS 18.4 beta 4 tipkit crash
Might be your code. Show us the code that's crashing and we'll see if we can help. If you think it's definitely a bug, then you should raise it in the normal way at https://feedbackassistant.apple.com/ You can post the FB number here if you like.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Genmoji not working
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Mar ’25
Reply to How to use core spotlight ?
How would you know it never gets triggered? You aren't printing anything to the console. Anyway, in my apps I have the WindowGroup set up like this: var body: some Scene { WindowGroup { PhoneView() .environment(modelData) } } And then, in the PhoneView() I have this: var body: some View { ZStack { // Whatever... } .onContinueUserActivity(CSSearchableItemActionType, perform: handleSpotlight) // blah blah blah... } private func handleSpotlight(userActivity: NSUserActivity) { guard let uniqueIdentifier = userActivity.userInfo?[CSSearchableItemActivityIdentifier] as? String else { return } // Handle the activity... }
Replies
Boosts
Views
Activity
Mar ’25
Reply to Live Captions only partially works - help?
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Mar ’25
Reply to Changing minimum deployment to iOS 17.0 Xcode compiler issues
We can't really do anything without seeing any code. Generally, I've gotten those warnings if I've done something wrong, but it's not obvious what. Can you post what you changed the onChange from and to?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Mar ’25
Reply to I have not received the email with the TestFlight invitation.
You need to get in touch with the developer of the app you want to use in TestFlight. Firing out a post to us random developers isn't going to work. You're in the wrong place.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Safari extension doesn't load
I can only suggest you raise a bug in the normal way, and hope that Apple's engineers look at it.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Apple watch problem when only play music on watch
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Similar Issues anyone?!
Completely inappropriate for these forums. Also, reads a lot like a bad AI wrote it.
Replies
Boosts
Views
Activity
Mar ’25
Reply to Safari extension doesn't load
Is this an iOS app with a Safari extension, or just a Safari extension? I know that, in an iOS app, you have to build the iOS app so the extension is included, and then build and run the extension. If it's just a Safari extension, then I'm afraid I don't know.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to What is best practice for the app's image format & is there a maximun /minimum number of items the app can contains
You might have to rephrase your question, as I'm not entirely sure what you're asking. If you want to know about app icons you can get all the required info here: https://developer.apple.com/design/human-interface-guidelines/app-icons If you're talking about images in general, you can use anything as long as the code can read it, but I stick with PNG and JPG formats. As for there being a minimum number of 'items', do you mean images? Why does it matter? The minimum would be zero, and the maximum would whatever memory your app uses and file sizes. It's not really an easily-answerable question. Perhaps, if you refine your question you might get a better, more relevant answer.
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Mar ’25