diff --git a/Secretive/ContentView.swift b/Secretive/ContentView.swift index 66ba0f7..bab54b9 100644 --- a/Secretive/ContentView.swift +++ b/Secretive/ContentView.swift @@ -81,6 +81,8 @@ extension ContentView { } +#if DEBUG + struct ContentView_Previews: PreviewProvider { static var previews: some View { Group { @@ -91,3 +93,5 @@ struct ContentView_Previews: PreviewProvider { } } } + +#endif diff --git a/Secretive/EmptyStoreView.swift b/Secretive/EmptyStoreView.swift index 94d59e4..0f8a6f4 100644 --- a/Secretive/EmptyStoreView.swift +++ b/Secretive/EmptyStoreView.swift @@ -43,6 +43,8 @@ struct EmptyStoreModifiableView: View { } } +#if DEBUG + struct EmptyStoreModifiableView_Previews: PreviewProvider { static var previews: some View { Group { @@ -51,3 +53,5 @@ struct EmptyStoreModifiableView_Previews: PreviewProvider { } } } + +#endif diff --git a/Secretive/SecretDetailView.swift b/Secretive/SecretDetailView.swift index 44318ab..01d42ed 100644 --- a/Secretive/SecretDetailView.swift +++ b/Secretive/SecretDetailView.swift @@ -56,8 +56,12 @@ struct SecretDetailView: View { } +#if DEBUG + struct SecretDetailView_Previews: PreviewProvider { static var previews: some View { SecretDetailView(secret: Preview.Store(numberOfRandomSecrets: 1).secrets[0]) } } + +#endif diff --git a/Secretive/SetupView.swift b/Secretive/SetupView.swift index 74478d1..d2b61c6 100644 --- a/Secretive/SetupView.swift +++ b/Secretive/SetupView.swift @@ -122,8 +122,12 @@ extension SetupView { } +#if DEBUG + struct SetupView_Previews: PreviewProvider { static var previews: some View { SetupView() } } + +#endif