Thank you!
Here's a test SwiftUI View similar to yours, but without the Dynamic Member enum
I encountered the same crash, even though I verified that the passthrough shader existed. However, I decided to test it in Swift Playgrounds instead of Xcode, and surprisingly, it worked! I’m not sure why the shader fails to load in Xcode but runs fine in Swift Playgrounds.
After confirming that it worked in Playgrounds, I reopened the project in Xcode, and the bug reappeared. This makes me fairly certain that the issue stems from differences between Xcode and Swift Playgrounds. Hopefully, this helps others who run into the same problem!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: