A solution that would solve at least part of the problem described with regard to exclusive code for SwiftUI previews:
Give us a way to annotate code so that it can only be used within #Preview macros.
I.e. sth. that prevents this code from "accidentally" being used in regular / production builds.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: