Post

Replies

Boosts

Views

Activity

Reply to Making onscreen content available to Siri not requesting my Transferable
Hi Ed, I haven't split it out into a test project yet but that may be the next step. This is a complex app which always makes the extraction a bit more of a process. One interesting note - I have this functionality allowing Siri to 'read' the screen in this way for two types of content. One is in the app's photo gallery which is very similar to the sample code. That one works - when it shares with ChatGPT, it correctly identifies the type as 'photo' not 'screenshot' and my Transferable implementation is called. The second one that's not working is using the .reader.document schema, i.e. I want to share a text document with Siri but instead it only wants to share a screenshot. Looking at the code, other than the schema type being different, the mechanics are basically the same which is where I'm confused and was curious if anyone else had done this and could be helpful. Perhaps a sample is the next thing...
Dec ’24
Reply to Image Playground Sheet Appears Blank First Time Presented?
It was more of a general question about if the API is working correctly for others which of course can be very useful information - pretty common for Apple APIs, especially SwiftUI, to behave in strange ways and sometimes just not work at all. So that was the purpose - knowing it works fine for everyone else would be useful. That's what the 'just me' question means. But sure, here's the code. It's basically the same as the sample in the documentation and since this modifier just uses a Bool state for presentation it didn't seem useful. With the below: When button pressed, sheet presents as expected. Sheet is blank, i.e. totally white. Wait a little bit to see what happens (nothing). Dismiss sheet with interactive pull dismissal. Tap button again. Sheet appears, Image Playgrounds content loads. Code is as follows in case something does jump out. Maybe you'll see something that I do not. import SwiftUI #if canImport(ImagePlayground) import ImagePlayground #endif @available(iOS 18.2, *) struct TripCustomImageGenerationView: View { @Environment(\.supportsImagePlayground) private var supportsImagePlayground @State private var showImagePlayground: Bool = false @State private var data: Data? var body: some View { if supportsImagePlayground { Button("Generate Custom Image") { showImagePlayground = true } .imagePlaygroundSheet(isPresented: $showImagePlayground, concept: "Test Image Concept") { url in self.data = try? Data(contentsOf: url) } } else { EmptyView() } } }
Dec ’24
Reply to Core Spotlight "Summarization" Oddly Inconsistent
Yup, I guess that's the next step, a sample. I am submitting the required elements (nicely documented, appreciate that). What I'm noticing is that it almost appears throttled (though the delegate is not getting the throttling message). On Vision Pro, it appears that I'm much more likely to get a response if the battery pack is plugged into mains power... but nobody really uses the Vision Pro that way so that's not something I can rely on. Anyway - thanks for the tip.
Topic: App & System Services SubTopic: General Tags:
Mar ’25
Reply to BGTaskScheduler crashes on iOS 18.4
It's not ideal but it took me about 10 minutes to revert it so doesn't seem like the end of the world, at least for most implementations. Kevin's signature says he is a DTS engineer, that means Developer Technical Support which at least commonly would suggest he's not the person who would be assigned to work on fixing a bug like this but to help developers understand the APIs and work around issues. I appreciate him giving us such detailed information - that's not always the case.
Mar ’25
Reply to How to display the “Search in App” button in Spotlight?
You need to include the CoreSpotlightContinuation key in your Info.plist - it's a boolean that you should set to YES. https://developer.apple.com/documentation/corespotlight/csquerycontinuationactiontype
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Image Search Apple Intelligence 18.2 Beta - Can’t Find It
This is a developer forum - sounds like you might want user support. Apple does have user support forums which are probably a better fit - we talk about APIs here. The feature you're talking about is iPhone 16 only. It requires the Camera Control button.
Replies
Boosts
Views
Activity
Dec ’24
Reply to Making onscreen content available to Siri not requesting my Transferable
Hi Ed, I haven't split it out into a test project yet but that may be the next step. This is a complex app which always makes the extraction a bit more of a process. One interesting note - I have this functionality allowing Siri to 'read' the screen in this way for two types of content. One is in the app's photo gallery which is very similar to the sample code. That one works - when it shares with ChatGPT, it correctly identifies the type as 'photo' not 'screenshot' and my Transferable implementation is called. The second one that's not working is using the .reader.document schema, i.e. I want to share a text document with Siri but instead it only wants to share a screenshot. Looking at the code, other than the schema type being different, the mechanics are basically the same which is where I'm confused and was curious if anyone else had done this and could be helpful. Perhaps a sample is the next thing...
Replies
Boosts
Views
Activity
Dec ’24
Reply to Making onscreen content available to Siri not requesting my Transferable
A little more on this... For my document implementation, I switched from plain text to generating a PDF and using a DataTransferRepresentation instead of a ProxyRepresentation (with the string) and now it works. No idea why the basic string didn't work but works now.
Replies
Boosts
Views
Activity
Dec ’24
Reply to Image Playground Sheet Appears Blank First Time Presented?
It was more of a general question about if the API is working correctly for others which of course can be very useful information - pretty common for Apple APIs, especially SwiftUI, to behave in strange ways and sometimes just not work at all. So that was the purpose - knowing it works fine for everyone else would be useful. That's what the 'just me' question means. But sure, here's the code. It's basically the same as the sample in the documentation and since this modifier just uses a Bool state for presentation it didn't seem useful. With the below: When button pressed, sheet presents as expected. Sheet is blank, i.e. totally white. Wait a little bit to see what happens (nothing). Dismiss sheet with interactive pull dismissal. Tap button again. Sheet appears, Image Playgrounds content loads. Code is as follows in case something does jump out. Maybe you'll see something that I do not. import SwiftUI #if canImport(ImagePlayground) import ImagePlayground #endif @available(iOS 18.2, *) struct TripCustomImageGenerationView: View { @Environment(\.supportsImagePlayground) private var supportsImagePlayground @State private var showImagePlayground: Bool = false @State private var data: Data? var body: some View { if supportsImagePlayground { Button("Generate Custom Image") { showImagePlayground = true } .imagePlaygroundSheet(isPresented: $showImagePlayground, concept: "Test Image Concept") { url in self.data = try? Data(contentsOf: url) } } else { EmptyView() } } }
Replies
Boosts
Views
Activity
Dec ’24
Reply to Image Playground Sheet Appears Blank First Time Presented?
Thanks, very good to know. I'll see if I can reproduce it in a test project (unfortunately the project it's in is huge) and post here and do a FB.
Replies
Boosts
Views
Activity
Dec ’24
Reply to visionOS 2.4b4 SDK Missing / Cannot Be Downloaded
'cmon folks, it would be nice to be able to build again...
Replies
Boosts
Views
Activity
Mar ’25
Reply to visionOS 2.4b4 SDK Missing / Cannot Be Downloaded
Kinda sad that this has been going for over a day and not resolved.
Replies
Boosts
Views
Activity
Mar ’25
Reply to visionOS 2.4b4 SDK Missing / Cannot Be Downloaded
Anyone have any idea how to escalate this? Seems insane.
Replies
Boosts
Views
Activity
Mar ’25
Reply to visionOS 2.4b4 SDK Missing / Cannot Be Downloaded
Looks like this may now be fixed.
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to visionOS 2.4b4 SDK Missing / Cannot Be Downloaded
Looks like this may now be fixed - can others confirm?
Replies
Boosts
Views
Activity
Mar ’25
Reply to Core Spotlight "Summarization" Oddly Inconsistent
Yup, I guess that's the next step, a sample. I am submitting the required elements (nicely documented, appreciate that). What I'm noticing is that it almost appears throttled (though the delegate is not getting the throttling message). On Vision Pro, it appears that I'm much more likely to get a response if the battery pack is plugged into mains power... but nobody really uses the Vision Pro that way so that's not something I can rely on. Anyway - thanks for the tip.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to visionOS 2.4b4 SDK Missing / Cannot Be Downloaded
Interesting - I left Xcode open overnight and when I woke up, the SDK was there.
Replies
Boosts
Views
Activity
Mar ’25
Reply to BGTaskScheduler crashes on iOS 18.4
It's not ideal but it took me about 10 minutes to revert it so doesn't seem like the end of the world, at least for most implementations. Kevin's signature says he is a DTS engineer, that means Developer Technical Support which at least commonly would suggest he's not the person who would be assigned to work on fixing a bug like this but to help developers understand the APIs and work around issues. I appreciate him giving us such detailed information - that's not always the case.
Replies
Boosts
Views
Activity
Mar ’25
Reply to SwiftData: SwiftData.PersistentIdentifierImplementation) was remapped to a temporary identifier during save
Pretty hacky but thanks for sharing, will try it out. Hopefully this is fixed in the next release. I'll be at WWDC and this is on my list to try to ask about, either in-person or in one of the virtual labs.
Replies
Boosts
Views
Activity
May ’25