File tree Expand file tree Collapse file tree 4 files changed +15
-17
lines changed
Examples/DemosApp/DemosApp/ComponentsPreview/PreviewPages
Components/InputField/Models Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ struct InputFieldPreview: View {
6262 Toggle ( " Secure Input " , isOn: self . $model. isSecureInput)
6363 SizePicker ( selection: self . $model. size)
6464 Picker ( " Style " , selection: self . $model. style) {
65- Text ( " Light " ) . tag ( InputFieldVM . Style . light)
66- Text ( " Bordered " ) . tag ( InputFieldVM . Style . bordered)
67- Text ( " Faded " ) . tag ( InputFieldVM . Style . faded)
65+ Text ( " Light " ) . tag ( InputStyle . light)
66+ Text ( " Bordered " ) . tag ( InputStyle . bordered)
67+ Text ( " Faded " ) . tag ( InputStyle . faded)
6868 }
6969 SubmitTypePicker ( selection: self . $model. submitType)
7070 UniversalColorPicker (
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public struct InputFieldVM: ComponentVM {
6565 /// The visual style of the input field.
6666 ///
6767 /// Defaults to `.light`.
68- public var style : Style = . light
68+ public var style : InputStyle = . light
6969
7070 /// The type of the submit button on the keyboard.
7171 ///
Original file line number Diff line number Diff line change 1+ import Foundation
2+
3+ /// The appearance style of inputs.
4+ public enum InputStyle : Hashable {
5+ /// An input with a partially transparent background.
6+ case light
7+ /// An input with a transparent background and a border.
8+ case bordered
9+ /// An input with a partially transparent background and a border.
10+ case faded
11+ }
You can’t perform that action at this time.
0 commit comments