Skip to content

Commit

Permalink
Only preview if DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
nriedman committed Apr 4, 2024
1 parent af773da commit f9b3ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ENGAGEHF/Dashboard/Dashboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ struct Dashboard: View {
}
}

#if DEBUG
#Preview {
Dashboard(presentingAccount: .constant(false))
}
#endif
2 changes: 2 additions & 0 deletions ENGAGEHF/Dashboard/Greeting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ struct Greeting: View {
}
}

#if DEBUG
#Preview {
Greeting()
}
#endif

0 comments on commit f9b3ec7

Please sign in to comment.