Stop making previews for light & dark colour schemes. (#345)

Xcode 14 now has preview variants for this.
This commit is contained in:
Doug
2022-11-25 17:49:13 +00:00
committed by GitHub
parent 00cd2ab707
commit f776575c81
32 changed files with 29 additions and 207 deletions
@@ -56,11 +56,6 @@ struct UserNotificationModalView: View {
struct UserNotificationModalView_Previews: PreviewProvider {
static var previews: some View {
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
private static var body: some View {
VStack {
UserNotificationModalView(notification: UserNotification(type: .modal,
title: "Successfully logged in",
@@ -48,11 +48,6 @@ struct UserNotificationToastView: View {
struct UserNotificationToastView_Previews: PreviewProvider {
static var previews: some View {
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
private static var body: some View {
VStack {
UserNotificationToastView(notification: UserNotification(title: "Successfully logged in",
iconName: "checkmark"))