diff --git a/ENGAGEHF/Dashboard/Dashboard.swift b/ENGAGEHF/Dashboard/Dashboard.swift index c457a8e9..e800530c 100644 --- a/ENGAGEHF/Dashboard/Dashboard.swift +++ b/ENGAGEHF/Dashboard/Dashboard.swift @@ -28,6 +28,8 @@ struct Dashboard: View { } } +#if DEBUG #Preview { Dashboard(presentingAccount: .constant(false)) } +#endif diff --git a/ENGAGEHF/Dashboard/Greeting.swift b/ENGAGEHF/Dashboard/Greeting.swift index 31a0d200..3a0b728c 100644 --- a/ENGAGEHF/Dashboard/Greeting.swift +++ b/ENGAGEHF/Dashboard/Greeting.swift @@ -22,6 +22,8 @@ struct Greeting: View { } } +#if DEBUG #Preview { Greeting() } +#endif