Gate preview fixtures to debug builds

This commit is contained in:
John Burwell 2026-05-28 17:43:46 -05:00
parent 4cdf8b64a8
commit abbe64233d
4 changed files with 9 additions and 0 deletions

View File

@ -1241,8 +1241,10 @@ struct ItemDetailView: View {
}
}
#if DEBUG
struct ItemDetailColumnViews_Previews: PreviewProvider {
static var previews: some View {
ItemDetailColumnPreviewContainer()
}
}
#endif

View File

@ -184,8 +184,10 @@ private struct ContentRowView: View {
}
}
#if DEBUG
struct ItemListColumnViews_Previews: PreviewProvider {
static var previews: some View {
ItemListColumnPreviewContainer()
}
}
#endif

View File

@ -1,6 +1,8 @@
import Foundation
import SwiftUI
#if DEBUG
enum PreviewFixtures {
static let baseDate = Date(timeIntervalSinceReferenceDate: 770_000_000)
@ -352,3 +354,4 @@ struct ItemDetailColumnPreviewContainer: View {
}
}
}
#endif

View File

@ -464,8 +464,10 @@ private struct ConnectedDeviceTransportIcon: View {
}
}
#if DEBUG
struct SidebarColumnViews_Previews: PreviewProvider {
static var previews: some View {
SidebarColumnPreviewContainer()
}
}
#endif