Temporarily disable previews

This commit is contained in:
Max Goedjen 2025-09-02 00:18:30 -07:00
parent 0808156e54
commit cc170e2357
No known key found for this signature in database
4 changed files with 17 additions and 32 deletions

View File

@ -109,7 +109,7 @@
buildConfiguration = "Debug"> buildConfiguration = "Debug">
</AnalyzeAction> </AnalyzeAction>
<ArchiveAction <ArchiveAction
buildConfiguration = "Release" buildConfiguration = "Debug"
revealArchiveInOrganizer = "YES"> revealArchiveInOrganizer = "YES">
</ArchiveAction> </ArchiveAction>
</Scheme> </Scheme>

View File

@ -199,25 +199,16 @@ extension ContentView {
} }
#if DEBUG //#Preview("Empty") {
// // Empty on modifiable and nonmodifiable
struct ContentView_Previews: PreviewProvider { // ContentView(showingCreation: .constant(false), runningSetup: .constant(false), hasRunSetup: .constant(true))
// .environment(Preview.storeList(stores: [Preview.Store(numberOfRandomSecrets: 0)], modifiableStores: [Preview.StoreModifiable(numberOfRandomSecrets: 0)]))
static var previews: some View { // .environment(PreviewUpdater())
Group { //}
// Empty on modifiable and nonmodifiable //
ContentView(showingCreation: .constant(false), runningSetup: .constant(false), hasRunSetup: .constant(true)) //#Preview("5 Items") {
.environment(Preview.storeList(stores: [Preview.Store(numberOfRandomSecrets: 0)], modifiableStores: [Preview.StoreModifiable(numberOfRandomSecrets: 0)])) // // 5 items on modifiable and nonmodifiable
.environment(PreviewUpdater()) // ContentView(showingCreation: .constant(false), runningSetup: .constant(false), hasRunSetup: .constant(true))
// .environment(Preview.storeList(stores: [Preview.Store()], modifiableStores: [Preview.StoreModifiable()]))
// 5 items on modifiable and nonmodifiable // .environment(PreviewUpdater())
ContentView(showingCreation: .constant(false), runningSetup: .constant(false), hasRunSetup: .constant(true)) //}
.environment(Preview.storeList(stores: [Preview.Store()], modifiableStores: [Preview.StoreModifiable()]))
.environment(PreviewUpdater())
}
}
}
#endif

View File

@ -132,5 +132,5 @@ struct CreateSecretView<StoreType: SecretStoreModifiable>: View {
} }
#Preview { #Preview {
CreateSecretView(store: Preview.StoreModifiable(), showing: .constant(true)) // CreateSecretView(store: Preview.StoreModifiable(), showing: .constant(true))
} }

View File

@ -37,12 +37,6 @@ struct SecretDetailView<SecretType: Secret>: View {
} }
#if DEBUG #Preview {
// SecretDetailView(secret: Preview.Store(numberOfRandomSecrets: 1).secrets[0])
struct SecretDetailView_Previews: PreviewProvider {
static var previews: some View {
SecretDetailView(secret: Preview.Store(numberOfRandomSecrets: 1).secrets[0])
}
} }
#endif