Comment on How to target SwiftUI code to only the visionOS platform (Compiler Directive) I did this, but the platform specific code still doesnt work. Programming Languages Swift Jun ’23