Search code examples
iosswiftgmailtextfieldfloating

How to create floating textfield like of gmail in ios swift?


I need to create a floating textfield like Gmail for my iOS app, swift. How can I achieve this ? I used to use JVFloatLabeledTextField previously but its not similar to what I wanted. I need to create something like in this image, where placeholder breaks the textfield border.enter image description here


Solution

  • Google has created a Material Design Library you can use.

    The picture you sent is their MDCTextInputControllerOutlined view.