3lvis / Form

The most flexible and powerful way to build a form on iOS

Home Page:http://hyper.no

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Segmented Control / Switch Field

jeffleeismyhero opened this issue · comments

Re: #474 and #476

A solution for booleans and an alternative for select fields can be very helpful - especially for one or two options. Both scenarios can be resolved with a UISegmentedControl based solution.

screen shot 2016-09-05 at 5 42 45 pm

screen shot 2016-09-05 at 5 44 27 pm

I'm happy to tackle this next week if you'll have it.

Why not that one instead?

Ideally, I'd like to add support for UISwitch as well. In the meantime, UISegmentedControl fields are versatile enough to handle the UISwitch use-cases AND work well with FORM's width-based sizing.

Additionally, UISegmentedControl fields can support more than yes/no based selections.

Makes sense. I guess we'll keep the Switch issues open and offer this as a workaround.