@@ -23,7 +23,7 @@ struct AutocapitalizationPicker: View {
23
23
@Binding var selection : TextAutocapitalization
24
24
25
25
var body : some View {
26
- Picker ( " Autocapitalization " , selection: $selection) {
26
+ Picker ( " Autocapitalization " , selection: self . $selection) {
27
27
Text ( " Never " ) . tag ( TextAutocapitalization . never)
28
28
Text ( " Characters " ) . tag ( TextAutocapitalization . characters)
29
29
Text ( " Words " ) . tag ( TextAutocapitalization . words)
@@ -36,7 +36,7 @@ struct AutocapitalizationPicker: View {
36
36
37
37
struct BorderWidthPicker : View {
38
38
@Binding var selection : BorderWidth
39
-
39
+
40
40
var body : some View {
41
41
Picker ( " Border Width " , selection: self . $selection) {
42
42
Text ( " None " ) . tag ( BorderWidth . none)
@@ -47,6 +47,22 @@ struct BorderWidthPicker: View {
47
47
}
48
48
}
49
49
50
+ struct ButtonStylePicker : View {
51
+ @Binding var selection : ComponentsKit . ButtonStyle
52
+
53
+ var body : some View {
54
+ Picker ( " Style " , selection: $selection) {
55
+ Text ( " Filled " ) . tag ( ButtonStyle . filled)
56
+ Text ( " Plain " ) . tag ( ButtonStyle . plain)
57
+ Text ( " Light " ) . tag ( ButtonStyle . light)
58
+ Text ( " Minimal " ) . tag ( ButtonStyle . minimal)
59
+ Text ( " Bordered with small border " ) . tag ( ButtonStyle . bordered ( . small) )
60
+ Text ( " Bordered with medium border " ) . tag ( ButtonStyle . bordered ( . medium) )
61
+ Text ( " Bordered with large border " ) . tag ( ButtonStyle . bordered ( . large) )
62
+ }
63
+ }
64
+ }
65
+
50
66
// MARK: - ComponentColorPicker
51
67
52
68
struct ComponentColorPicker : View {
@@ -203,13 +219,25 @@ struct CaptionFontPicker: View {
203
219
}
204
220
}
205
221
222
+ struct InputStylePicker : View {
223
+ @Binding var selection : InputStyle
224
+
225
+ var body : some View {
226
+ Picker ( " Style " , selection: self . $selection) {
227
+ Text ( " Light " ) . tag ( InputStyle . light)
228
+ Text ( " Bordered " ) . tag ( InputStyle . bordered)
229
+ Text ( " Faded " ) . tag ( InputStyle . faded)
230
+ }
231
+ }
232
+ }
233
+
206
234
// MARK: - KeyboardTypePicker
207
235
208
236
struct KeyboardTypePicker : View {
209
237
@Binding var selection : UIKeyboardType
210
238
211
239
var body : some View {
212
- Picker ( " Keyboard Type " , selection: $selection) {
240
+ Picker ( " Keyboard Type " , selection: self . $selection) {
213
241
Text ( " Default " ) . tag ( UIKeyboardType . default)
214
242
Text ( " asciiCapable " ) . tag ( UIKeyboardType . asciiCapable)
215
243
Text ( " numbersAndPunctuation " ) . tag ( UIKeyboardType . numbersAndPunctuation)
@@ -260,7 +288,7 @@ struct SubmitTypePicker: View {
260
288
@Binding var selection : SubmitType
261
289
262
290
var body : some View {
263
- Picker ( " Submit Type " , selection: $selection) {
291
+ Picker ( " Submit Type " , selection: self . $selection) {
264
292
Text ( " done " ) . tag ( SubmitType . done)
265
293
Text ( " go " ) . tag ( SubmitType . go)
266
294
Text ( " join " ) . tag ( SubmitType . join)
0 commit comments