Post

Replies

Boosts

Views

Activity

Comment on GestureComponent does not support DragGesture
Yes, I know how to combine gestures like that. But that isn't really the same thing as multiple gestures. For example Tap to toggle a value (show a popover, presentation, etc) Drag to translate an entity We can easily do that by using gestures on a RealityView. But it looks like the new GestureComponent only takes a single gesture. I'll file a feedback re: pass an array of gestures.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Jul ’25
Comment on When placing a TextField within a RealityViewAttachment, the virtual keyboard does not appear in front of the user as expected.
In the mean time as a possible work around, can you use ViewAttachmentComponent instead? The new sample Canyon Crosser has several examples of using this new component. I have already switched all my attachments to ViewAttachmentComponent and can confirm the behavior is the same as regular RealityView attachments. I'll work on a feedback when I have a chance.
Topic: Spatial Computing SubTopic: General Tags:
Jul ’25
Comment on How to get the floor plane with Spatial Tracking Session and Anchor Entity
it's usually better to put the code that configures the SpatialTrackingSession into a class instead of an @State property on your view Sure, I would do that in most apps. This is just an example where I was trying to keep everything in one file. Do you have any details on the why it is better to place SpatialTrackingSession in an observable class instead of state on a view? Several of the WWDC sessions and examples store the session in the view and I was using them as a starting point.
Topic: Spatial Computing SubTopic: ARKit Tags:
Jan ’25
Comment on Do I need a privacy manifest when using UserDefaults and CloudKit in my app?
Very interesting. I didn't realize that User Defaults contained anything other than the data I write to it. I always thought it was essentially an empty plist where I could add key:value pairs. I'll add the manifest for now. Maybe it's time to reconsider using UserDefaults at all. I suppose I could get the same behavior from creating a local JSON file and saving the settings there.
Sep ’24