Skip to content

Swift package to add floating placeholder to TextField and SecureField in SwiftUI

Notifications You must be signed in to change notification settings

maxakash/FloatingLabelTextField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FloatingLabelTextField

This Swift Package supports floating label for Text Field and Secure Field in SwiftUI

Screenshot

Installation

Install through Swift Package Manager.

Usage

import FloatingLabelTextField


@State var username = ""
@State var password = ""
var body: some View {
  VStack {
    FloatingLabelTextField(placeHolder: "Username", text: $username)
    FloatingLabelSecureField(placeHolder: "Password", text: $password)
  }
}

About

Swift package to add floating placeholder to TextField and SecureField in SwiftUI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages