Post

Replies

Boosts

Views

Activity

defaultSize for plain spatial window
When I set defaultSize for main plain WindowGroup WindowGroup { ContentView() }.defaultSize(width: 500, height: 1000) I see this bug, my window is clipped a bit at start. Why does it happen? but when I drag corners a bit it all fixes fine import RealityKit import RealityKitContent struct ContentView: View { var body: some View { VStack { Text("Hello") RealityView { content in if let scene = try? await Entity(named: "lumoscene", in: realityKitContentBundle) { content.add(scene) scene.transform.translation = [0.0, 0.0, -0.15] for anim in scene.availableAnimations { let newAnim = anim.repeat(duration: .infinity) scene.playAnimation(newAnim) } } } update: { content in } placeholder: { ProgressView() } } } } #Preview { ContentView() }
0
0
438
Aug ’23
Debugging SwiftUI Shaders in iOS 17 - Unavailable Source Code in Xcode?
Hello everyone! I try to debug a shader for SwiftUI(which was introduced in iOS17) as I understand this is sort of uber shader system. but it looks like there are no available source code for SwiftUI shaders in Xcode? as I understand I need that so Xcode will allow me to edit my small [[stitchable]] part. Anyone has succeeded in using shader debugger for SwiftUI shaders? xcode 15, macos 14, ios 17
1
0
879
Sep ’23