Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eureka Forms for iOS - variable row height?

All --

I’ve just started using Eureka forms builder on an iOS project, and it has a lot of wonderful features. It’s very nicely done.

However, I eventually realized that there doesn’t seem to be a good way to customize the Height of any given row. [Interestingly, in the Example app, many different rows demonstrating different features are all the same height.]

Granted I can override heightForRowAtIndexPath (which I’ve tried) ... but rows (and indexes) get added dynamically when they’re hidden and unhidden, which makes things more complicated.

Before getting into even more workarounds for this: Is there a simpler / more elegant way of adjusting individual row heights within the framework itself?

I’d like to set the height of any given row within the definition of each Row, or its .cellSetup, .cellUpdate or similar closures.

enter image description here

Or even better, is there a straightforward way to have the UITableView respect the ‘intrinsic’ dimensions of only those labels which are used, according to the actual font sizes used? In other words, if the font in a given row is smaller, that row height should be correspondingly less.

Your help very much appreciated at this point.

Thank you in advance!

like image 620
rondoagogo Avatar asked Dec 19 '16 06:12

rondoagogo


1 Answers

try with this

 <<< TextRow().cellSetup({ (cell, row) in
                cell.height = ({return 10})
            })

this will change the height, I Hope this helps you

like image 96
Reinier Melian Avatar answered Sep 19 '22 20:09

Reinier Melian