Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 487 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 487 Bytes

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)
  }
}