There is also a native iOS library called TextFieldEffects which has built some of them in Swift.