Eureka Forms for iOS - variable row height?

Everything -

Ive just started using Eureka form builder in an iOS project and it has a lot of great features. It is very well done.

However, I eventually realized that there seems to be no good way to adjust the Height of any line. [Interestingly, in the Example application, many different lines showing different functions have the same height.]

I can override heightForRowAtIndexPath (which Ive tried), but rows (and indexes) are dynamically added when they are hidden and hidden, which complicates the situation.

Before embarking on even more workarounds for this: is there an easier / more elegant way to adjust the height of individual lines within the frame itself?

Id like to set the height of any given row in the definition of each row or its .cellSetup , .cellUpdate or similar closures.

enter image description here

Or, even better, is there a simple way for a UITableView to refer to the 'internal dimensions of only the labels that are used, depending on the font sizes used? In other words, if the font in a given line is smaller, the line height should be correspondingly smaller.

Your help is much appreciated at this moment.

Thank you in advance!

+5
source share
1 answer

try with this

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

it will change the height, I hope this helps you

+16
source

Source: https://habr.com/ru/post/1261482/


All Articles