Skip to content

Commit 7ac0d10

Browse files
change number of min and max rows in the textInput preview
1 parent 28ffd6b commit 7ac0d10

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Examples/DemosApp/DemosApp/ComponentsPreview/PreviewPages/TextInputPreview.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ struct TextInputPreviewPreview: View {
4242
BodyFontPicker(selection: self.$model.font)
4343
KeyboardTypePicker(selection: self.$model.keyboardType)
4444
Picker("Max Rows", selection: self.$model.maxRows) {
45-
Text("2 Rows").tag(2)
4645
Text("3 Rows").tag(3)
46+
Text("4 Rows").tag(4)
4747
Text("No Limit").tag(Optional<Int>.none)
4848
}
4949
Picker("Min Rows", selection: self.$model.minRows) {
5050
Text("1 Row").tag(1)
5151
Text("2 Rows").tag(2)
52+
Text("3 Rows").tag(3)
5253
}
5354
Toggle("Placeholder", isOn: .init(
5455
get: {
@@ -81,7 +82,7 @@ struct TextInputPreviewPreview: View {
8182
private static var initialModel: TextInputVM {
8283
return .init {
8384
$0.placeholder = "Placeholder"
84-
$0.minRows = 1
85+
$0.minRows = 2
8586
$0.maxRows = nil
8687
}
8788
}

Examples/DemosApp/DemosApp/Core/App.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct App: View {
4141
NavigationLinkWithTitle("Segmented Control") {
4242
SegmentedControlPreview()
4343
}
44-
NavigationLinkWithTitle("Text Field") {
44+
NavigationLinkWithTitle("Text Input") {
4545
TextInputPreviewPreview()
4646
}
4747
}

0 commit comments

Comments
 (0)