From 5e028bd88c1790c537034b27fe5fbbc12f6869af Mon Sep 17 00:00:00 2001 From: uhooi Date: Mon, 18 Sep 2023 21:22:52 +0900 Subject: [PATCH] Update previews --- .../Features/Licenses/LicenseDetail/LicenseDetailScreen.swift | 2 ++ .../Features/Licenses/LicenseList/LicenseListScreen.swift | 2 ++ .../Features/Sakatsu/SakatsuInput/SakatsuInputScreen.swift | 2 ++ .../Features/Sakatsu/SakatsuInput/SakatsuInputView.swift | 2 ++ .../Features/Sakatsu/SakatsuList/SakatsuListScreen.swift | 2 ++ .../Sources/Features/Sakatsu/SakatsuList/SakatsuListView.swift | 2 ++ .../Sources/Features/Sakatsu/SakatsuList/SakatsuRowView.swift | 2 ++ .../Sources/Features/Settings/Settings/SettingsScreen.swift | 2 ++ .../Sources/Features/Settings/Settings/SettingsView.swift | 2 ++ 9 files changed, 18 insertions(+) diff --git a/LokiPackage/Sources/Features/Licenses/LicenseDetail/LicenseDetailScreen.swift b/LokiPackage/Sources/Features/Licenses/LicenseDetail/LicenseDetailScreen.swift index 50c70c4..af3c3d4 100644 --- a/LokiPackage/Sources/Features/Licenses/LicenseDetail/LicenseDetailScreen.swift +++ b/LokiPackage/Sources/Features/Licenses/LicenseDetail/LicenseDetailScreen.swift @@ -28,6 +28,8 @@ struct LicenseDetailScreen: View { // MARK: - Previews +#if DEBUG #Preview { LicenseDetailScreen(license: .init(id: "loki", name: "Loki", licenseText: nil)) } +#endif diff --git a/LokiPackage/Sources/Features/Licenses/LicenseList/LicenseListScreen.swift b/LokiPackage/Sources/Features/Licenses/LicenseList/LicenseListScreen.swift index 6b01661..80f80b9 100644 --- a/LokiPackage/Sources/Features/Licenses/LicenseList/LicenseListScreen.swift +++ b/LokiPackage/Sources/Features/Licenses/LicenseList/LicenseListScreen.swift @@ -49,6 +49,8 @@ private extension View { // MARK: - Previews +#if DEBUG #Preview { LicenseListScreen() } +#endif diff --git a/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputScreen.swift b/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputScreen.swift index 90ce3ea..9cca255 100644 --- a/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputScreen.swift +++ b/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputScreen.swift @@ -97,6 +97,7 @@ private extension View { // MARK: - Previews +#if DEBUG #Preview { NavigationStack { SakatsuInputScreen( @@ -106,3 +107,4 @@ private extension View { ) } } +#endif diff --git a/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputView.swift b/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputView.swift index a90d277..b8de682 100644 --- a/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputView.swift +++ b/LokiPackage/Sources/Features/Sakatsu/SakatsuInput/SakatsuInputView.swift @@ -208,6 +208,7 @@ private extension SakatsuInputView { // MARK: - Previews +#if DEBUG #Preview { SakatsuInputView( sakatsu: .preview, @@ -229,3 +230,4 @@ private extension SakatsuInputView { onAddNewTemperatureButtonClick: {} ) } +#endif diff --git a/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListScreen.swift b/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListScreen.swift index 9762543..3641d3a 100644 --- a/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListScreen.swift +++ b/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListScreen.swift @@ -143,8 +143,10 @@ private extension View { // MARK: - Previews +#if DEBUG #Preview { NavigationStack { SakatsuListScreen(onSettingsButtonClick: {}) } } +#endif diff --git a/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListView.swift b/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListView.swift index 0cbb3ff..6a397fa 100644 --- a/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListView.swift +++ b/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuListView.swift @@ -29,6 +29,7 @@ struct SakatsuListView: View { // MARK: - Previews +#if DEBUG #Preview { SakatsuListView( sakatsus: [.preview], @@ -37,3 +38,4 @@ struct SakatsuListView: View { onDelete: { _ in } ) } +#endif diff --git a/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuRowView.swift b/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuRowView.swift index a3bb15b..5e84c89 100644 --- a/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuRowView.swift +++ b/LokiPackage/Sources/Features/Sakatsu/SakatsuList/SakatsuRowView.swift @@ -155,6 +155,7 @@ private extension SakatsuRowView { // MARK: - Previews +#if DEBUG #Preview { SakatsuRowView( sakatsu: .preview, @@ -162,3 +163,4 @@ private extension SakatsuRowView { onEditButtonClick: {} ) } +#endif diff --git a/LokiPackage/Sources/Features/Settings/Settings/SettingsScreen.swift b/LokiPackage/Sources/Features/Settings/Settings/SettingsScreen.swift index 5604c86..b8ca63f 100644 --- a/LokiPackage/Sources/Features/Settings/Settings/SettingsScreen.swift +++ b/LokiPackage/Sources/Features/Settings/Settings/SettingsScreen.swift @@ -37,8 +37,10 @@ public struct SettingsScreen: View { // MARK: - Previews +#if DEBUG #Preview { NavigationStack { SettingsScreen(onLicensesButtonClick: {}) } } +#endif diff --git a/LokiPackage/Sources/Features/Settings/Settings/SettingsView.swift b/LokiPackage/Sources/Features/Settings/Settings/SettingsView.swift index 82460e6..4cb1513 100644 --- a/LokiPackage/Sources/Features/Settings/Settings/SettingsView.swift +++ b/LokiPackage/Sources/Features/Settings/Settings/SettingsView.swift @@ -89,6 +89,7 @@ private extension SettingsView { // MARK: - Previews +#if DEBUG #Preview { SettingsView( defaultSaunaTimes: .preview, @@ -98,3 +99,4 @@ private extension SettingsView { onLicensesButtonClick: {} ) } +#endif