Eureka: TextAreaRow auto height?

Created on 1 Apr 2016  路  2Comments  路  Source: xmartlabs/Eureka

Can I configure a TextAreaRow of an Eureka form to fill the available vertical space?
I will have just a few rows above and toolbar at the bottom.

Eureka: latest master branch, Xcode 7.3, iOS 9.3

btw, documentation says, post questions to stackoverflow.com with tag "eureka-forms", but there is no such tag on SO (and I don't have enough rep to create it). Question on SO with this issue.

appearance duplicate TextAreaRow

Most helpful comment

@attilaszaszlateral Take a look at this merged pull request https://github.com/xmartlabs/Eureka/pull/416, it should be enough to implement your feature. You can set up the row height as well as enable auto size.

Basically we added textAreaHeight property to TextAreaRow. textAreaHeight type is an enum that can be either Dynamic or Fixed as shown below..

public enum TextAreaHeight {
    case Fixed(cellHeight: CGFloat)
    case Dynamic(initialTextViewHeight: CGFloat)
}

All 2 comments

Hi @attilaszaszlateral, have a look at #90 it might help you for now

@attilaszaszlateral Take a look at this merged pull request https://github.com/xmartlabs/Eureka/pull/416, it should be enough to implement your feature. You can set up the row height as well as enable auto size.

Basically we added textAreaHeight property to TextAreaRow. textAreaHeight type is an enum that can be either Dynamic or Fixed as shown below..

public enum TextAreaHeight {
    case Fixed(cellHeight: CGFloat)
    case Dynamic(initialTextViewHeight: CGFloat)
}
Was this page helpful?
0 / 5 - 0 ratings