xmartlabs / Eureka

Elegant iOS form builder in Swift
https://eurekacommunity.github.io
MIT License
11.79k stars 1.33k forks source link

Form with table having multiple columns and multiple rows #1948

Open SachinTanpure opened 5 years ago

SachinTanpure commented 5 years ago

I need to create form which has table with multiple columns and multiple rows. Each row may contain different types of form element like textRow, Checkbox etc. Basically i have to arrange existing form elements in table's columns and rows format instead of vertical. Please help me. For reference please use below image WhatsApp Image 2019-12-04 at 3 40 30 PM

mats-claassen commented 5 years ago

Why don't you use a UICollectionView for that?

SachinTanpure commented 5 years ago

Every column has different type of form elements. Sorry i don't know how to put eureka form elements in UICollectionView. Can you please explain?

jamal-pasha commented 5 years ago

Very good point. I also need that feature in my application. I am using a Swift Datatable Plugin in my App and want to have Form Elements inside the table as @SachinTanpure said. The problem is that the SwiftDatatable Plugin is based on UICollectionView and the Eureka is UITableView. I tired alot to merge both of them BUT couldn't succeed. I will really appreciate if someone can Help.

https://github.com/pavankataria/SwiftDataTables

mats-claassen commented 5 years ago

You cannot use Eureka with UICollectionView as it bases on UITableView. I suggested you use a UICollectionView without Eureka.

Otherwise, what you could try to do is to use several FormViewControllers added next to each other. The tricky part would then be to handle the horizontal scroll. And you would also have to sync the contentOffset of each form.

SachinTanpure commented 5 years ago

I am okay to use UITableView. I don't need UICollectionView. We have android app with tableview which has table view(Please check screenshot). I need to replicate that feature in our iOS app with Eureka form elements. Can anyone help me? WhatsApp Image 2019-12-04 at 3 40 30 PM