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 {
|
struct ItemDetailColumnViews_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
ItemDetailColumnPreviewContainer()
|
ItemDetailColumnPreviewContainer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@ -184,8 +184,10 @@ private struct ContentRowView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
struct ItemListColumnViews_Previews: PreviewProvider {
|
struct ItemListColumnViews_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
ItemListColumnPreviewContainer()
|
ItemListColumnPreviewContainer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
|
||||||
enum PreviewFixtures {
|
enum PreviewFixtures {
|
||||||
static let baseDate = Date(timeIntervalSinceReferenceDate: 770_000_000)
|
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 {
|
struct SidebarColumnViews_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
SidebarColumnPreviewContainer()
|
SidebarColumnPreviewContainer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user