Skip to content

TestDependencies in Release Code #1559

Answered by stephencelis
natemann asked this question in Q&A
Discussion options

You must be logged in to vote

@natemann While we used to wrap our test clients with #if DEBUG we don't really think this is necessary. When SwiftUI first came out it similarly generated its Xcode preview code inside #if DEBUG blocks, but no longer does these days.

Do you have any concerns with removing the #if DEBUG here and allowing release builds to see the test and preview values?

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@tgrapperon
Comment options

@stephencelis
Comment options

Answer selected by natemann
Comment options

You must be logged in to vote
6 replies
@natemann
Comment options

@tgrapperon
Comment options

@mbrandonw
Comment options

@mbrandonw
Comment options

@natemann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants