ortuman / SwiftForms

A small and lightweight library written in Swift that allows you to easily create forms.
MIT License
1.33k stars 209 forks source link

Does FormViewController really need to extend UITableViewController? #155

Open col opened 7 years ago

col commented 7 years ago

This seems like a great library but it's currently pretty restrictive because FormViewController extends UITableViewController. For example, I'd really like to add a 'Submit' button to my forms that's anchored to the bottom on the screen. I could do this if FormViewController was a normal UIViewController that just contained a tableView and implemented UITableViewDelegate etc. As it is, I don't think there's anyway to achieve this.

Please let me know if you know of a work around or would be interested in a pull requests that removes the dependence on UITableViewController.

vinczebalazs commented 5 years ago

@col You could maybe create a custom cell which contains your submit button and add it to the form? Just an idea.

jbarros35 commented 5 years ago

It would be very good if could be just a protocol stub and that's it.