Post

Replies

Boosts

Views

Activity

Reply to Spotlight on finds title attribute (OS27 b3)
Thanks for taking a look! The feedback does not refer to intent donations, but to Spotlight search. The sample attached to the feedback (Archive.zip) is a full sample project that can be used to demonstrate the problem. I have also provided another version of the sample with a full unit test and an additional integration test using App Intents Testing that demonstrates that the indexing and searching generally works. The issue seems to the related to the system-wide Spotlight search (CMD-Space). It seems that Spotlight just searches among the title attributes, but does not search in textContents and other attributes.
3h
Reply to Multiple schemas per entity
The problem with using multiple entities seems to me that Spotlight and On Screen Awareness would face different identifiers for the same entity (e.g. one time it's a Note, the other time it's a file). I would need to expose different entity identifiers through the .appEntityIdentifier-modifier, depending on the UI context. Wouldn't this confuse Siri and Spotlight?
2w
Reply to Validate drag operations with Transferable
Thanks for your response! This depends on the context of the drop. For example, a dropDestination(for:action:) on a Table row would provide you the offset relative to the view’s underlying collection of data and you could use that to determine the appropriate index. I actually meant the functionality of -[NSOutlineView setDropItem:dropChildIndex:] where I can re-target the drop to another list item or making an ordered insertion to an unordered insertion. This is currently not supported with Transferable. Okay, thanks – I'll file a feedback. I wonder about the best workaround. Using onMove is not an option, because I want to be able to move items across multiple windows. Also it doesn't support move across List sections. The only option I see is to use onDrop and changing the drop icon using the DropDelegate. But it seems this won't display the blue drop indicator on macOS (while dropDestination does this).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’25
Reply to Spotlight on finds title attribute (OS27 b3)
Thanks for taking a look! The feedback does not refer to intent donations, but to Spotlight search. The sample attached to the feedback (Archive.zip) is a full sample project that can be used to demonstrate the problem. I have also provided another version of the sample with a full unit test and an additional integration test using App Intents Testing that demonstrates that the indexing and searching generally works. The issue seems to the related to the system-wide Spotlight search (CMD-Space). It seems that Spotlight just searches among the title attributes, but does not search in textContents and other attributes.
Replies
Boosts
Views
Activity
3h
Reply to Multiple schemas per entity
The problem with using multiple entities seems to me that Spotlight and On Screen Awareness would face different identifiers for the same entity (e.g. one time it's a Note, the other time it's a file). I would need to expose different entity identifiers through the .appEntityIdentifier-modifier, depending on the UI context. Wouldn't this confuse Siri and Spotlight?
Replies
Boosts
Views
Activity
2w
Reply to DynamicViewContent and drop validation (macOS)
Thanks for getting back! But this way I still can't validate the drop? For instance, I can't say that it is not allowed to drop something on Index 0? (E.g. to forbid moving something between some built-in items in the sidebar of my app)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Validate drag operations with Transferable
Okay, thanks for pointing out! But in this case I would have to use custom UI for drawing the indicator? It's not possible to trigger the standard indicators of macOS?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to Validate drag operations with Transferable
Thanks for your response! This depends on the context of the drop. For example, a dropDestination(for:action:) on a Table row would provide you the offset relative to the view’s underlying collection of data and you could use that to determine the appropriate index. I actually meant the functionality of -[NSOutlineView setDropItem:dropChildIndex:] where I can re-target the drop to another list item or making an ordered insertion to an unordered insertion. This is currently not supported with Transferable. Okay, thanks – I'll file a feedback. I wonder about the best workaround. Using onMove is not an option, because I want to be able to move items across multiple windows. Also it doesn't support move across List sections. The only option I see is to use onDrop and changing the drop icon using the DropDelegate. But it seems this won't display the blue drop indicator on macOS (while dropDestination does this).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to CKSyncEngine and desiredKeys
Thanks! I've filed it (FB15526915). I wonder what a good workaround could be: For now I think one could store the actual asset into a separate record so it won't be notified if other properties change. Do you see any other workarounds?
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Nov ’24