Gate preview fixtures to debug builds
This commit is contained in:
parent
4cdf8b64a8
commit
abbe64233d
@ -1241,8 +1241,10 @@ struct ItemDetailView: View {
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
struct ItemDetailColumnViews_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
ItemDetailColumnPreviewContainer()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -184,8 +184,10 @@ private struct ContentRowView: View {
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
struct ItemListColumnViews_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
ItemListColumnPreviewContainer()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -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
|
||||
|
||||
@ -464,8 +464,10 @@ private struct ConnectedDeviceTransportIcon: View {
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
struct SidebarColumnViews_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
SidebarColumnPreviewContainer()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user