Post

Replies

Boosts

Views

Activity

Reply to RealityView update closure
I have the same issue, and the thing is that it works just fine as expected in visionOS 2.0, but fails to be called in iOS 18.0. I'm loading the content from a bundle, and use literally the same code on both platforms. I consider this a bug in iOS. The alternative for me was to trigger updates by listening to changes in the underlying data model: RealityView { content in // your async loading code here... // you might need to adjust your scene after loading to your data model } .onChange(of: yourDatamodel) { // your refresh code here... } code-block
Oct ’24
Reply to Manipulate objects in Reality Composer Pro
Actually, I'm using Blender for creating these entities, but there are problems with the output, i.e. Blender exports an environment light (even if lights are disabled in export), which creates issues when compiling the package). Also, I need to assign new materials in Composer Pro, as I need universal inputs to alter textures at runtime in my scenario. I understand references, but the funny thing is that somehow (still haven't figured out a sequence of steps how to do it) I manage to convert these references to original data within the scene. These data are kept even when removing the originally referenced *.usdz. For me that makes stuff so much easier than dealing with the exports from Blender.
Oct ’24
Reply to Xcode 15, how to uncheck "Connect via network" for physical device?
Same issue here, and beside the issues mentioned already, this is quite a pain of you have a number of potential devices to run on. While previously devices were automatically switched when connected via cable, now I always have to select them in the menu. Which can be quite bothersome, if you have multiple similar devices. Cable debugging was always way faster than remote debugging, and I really do not understand why Apple is fixing something that was not broken.
Oct ’23
Reply to SwiftUI Catalyst app on Big Sur losing focus.
This is a complete mess. It can not be controlled, and documentation of this use case is pretty nonexistent. I'm tying to use an SwiftUI framework on Mac that has many dependencies to UIColor, so Mac Catalayst is the only way to go. Trying to get that running with the Document based App template is a total mess, and the focus issue complete destroys the interactivity of the interface randomly. Drag operations seem to be particularly vulnerable.
Sep ’21
Reply to SwiftUI Refresh List ?!
First you need to refactor your data interface to use either @Binding, @Environment, @EnvironmentObject or @ObservedObject, because this line: let posts = Data.posts() just statically instantiates your posts once. In the block/closure that handles .pullToRefresh, which right now just toggles the state of isShowing, you invoke call the func to load further data. The response to this method needs to update the data model you referenced in the first step. The UI is then refreshed automatically. Hope it helps
Dec ’20