Skip to content

blorenzo10/underlinetextfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Custom Underline TextField

Using SwiftUI

Simple reusable underline text field. You can use it with or without an icon image.

alt text

For use just create an instance of the struct UnderlineTextFieldView like following in your content view:

  1. With icon
UnderlineTextFieldView(
                    text: $userEmail,
                    textFieldView: TextField("", text: $userEmail),
                    placeholder: "Email Address",
                    imageName: emailIconName)
  1. Without icon
UnderlineTextFieldView(
                    text: $userEmail,
                    textFieldView: TextField("", text: $userEmail),
                    placeholder: "Email Address")

If you have any questions please feel free to reach me out on twitter: b_lorenzo10

Releases

No releases published

Packages

No packages published

Languages