alberdev / AnimatedField

Animated UITextField with check & filter for default types (email, url, password, price, date...) for iOS written in Swift 5
MIT License
315 stars 48 forks source link

Inconsistent when creating programmatically #21

Closed pauloec closed 4 years ago

pauloec commented 4 years ago

Problem 1: Setting text property makes the title to not appear even when titleAlwaysVisible is set to true

Problem 2: Setting placeholder attribute of .multiline puts the placeholder as text instead of a placeholder, making the user having to delete the characters

I'm using your example but just creating fields with code.

pauloec commented 4 years ago

It seems that it happens when you set a non-existent font to the format. Maybe consider not force unwrapping the font would fix this. Anyhow, my mistake.