Posts

Post not yet marked as solved
1 Replies
538 Views
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
Posted
by sgonchar2.
Last updated
.
Post not yet marked as solved
0 Replies
280 Views
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() }
Posted
by sgonchar2.
Last updated
.