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:
@@ -74,7 +74,7 @@ public struct ElementTextFieldStyle: TextFieldStyle {
|
||||
|
||||
@available(iOS 15.0, *)
|
||||
struct ElementTextFieldStyle_Previews: PreviewProvider {
|
||||
public static var states: some View {
|
||||
public static var previews: some View {
|
||||
VStack(spacing: 12) {
|
||||
TextField("Placeholder", text: .constant(""))
|
||||
.textFieldStyle(.elementInput(labelText: "Label", footerText: "Footer"))
|
||||
@@ -88,13 +88,4 @@ struct ElementTextFieldStyle_Previews: PreviewProvider {
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
|
||||
public static var previews: some View {
|
||||
Group {
|
||||
states
|
||||
.preferredColorScheme(.light)
|
||||
states
|
||||
.preferredColorScheme(.dark)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user