Skip to content

Commit

Permalink
Add Stepper
Browse files Browse the repository at this point in the history
  • Loading branch information
joeshonm committed May 17, 2020
1 parent ea84bff commit 07f3f1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ struct ContentView: View {

}))

sectionTwo.model.fields.append(SimpleFormField(toggleField: "Agree to Terms", name: "agree_to_terms"))
sectionTwo.model.fields.append(SimpleFormField(stepperField: "How many steps?", name: "steps", value: 20, range: 0...50))

sectionTwo.model.fields.append(SimpleFormField(toggleField: "Agree to Terms", name: "agree_to_terms", value: false))

self.simpleForm.model.sections.append(sectionTwo)

Expand Down

0 comments on commit 07f3f1f

Please sign in to comment.