jobandtalent / AnimatedTextInput

Animated UITextField and UITextView replacement for iOS
MIT License
760 stars 128 forks source link

Added maximum height for multiline label. #112

Open Tantalum73 opened 5 years ago

Tantalum73 commented 5 years ago

This PR is a response to #105. It implements a maximum height for a multiline TextView.

The new limit can be configured by setting an associated value to the AnimatedTextInputType-Enum case .multiline like this: .multiline(maxHeight: 150).

If the multiline label should not be limited in height, the user specifies .multiline(maxHeight: nil).

Tantalum73 commented 5 years ago

Thank you for your suggestion! I totally see your point. I would call it .heightConstraintMultiline but then autocorrect may miss it when the developer types .multi. Therefore I'll go with .multilineRestricted 👍🏼