A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
v
prefix in tag names. This will be the case for all tags going forward, previous v
prefix tags remain in place and new tags without the v
prefix has been pushed for these commits too.errorMessage
to Objective-C and Storyboard #218. Thanks to niveuseverto.self.font
is nil
. This might cause the component to render incorrectly, but it will not crash which is preferable. See #186
isLTRLanguage
with @objc
so it can be set from Objective-C code #200. Thanks to behdad-keynejad
localizedUppercase
for titleFormatter
by default when available. Thanks to canaksoy.titleFont
as open var to set another font in titleLabel
#141. Thanks to @rabenson and @rubenadlm.isLTRLanguage
open
so it can actually be set by users #121.M_PI
being deprecated in Xcode 8.3 #116. Thanks to @z3bi.Change implementation of amimation callbacks to include boolean completed flag.
textfield.setTitleVisible(false, animated: true) {
// Perform callback actions
}
textfield.setTitleVisible(false, animated: true) { completed in
// Perform callback actions using completed flag
}
See (#112)[https://github.com/Skyscanner/SkyFloatingLabelTextField/pull/112]