mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Stop making previews for light & dark colour schemes. (#345)
Xcode 14 now has preview variants for this.
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user