Skip to content
A simple SwiftUI FloatingLabelTextField component which shows floating lable for TextField.
Swift
Branch: master
Clone or download
Zhou Hao
Latest commit c4c294f Sep 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
FloatingLabelTextField.xcworkspace Initial commit Sep 11, 2019
FloatingLabelTextFieldDemo Initial commit Sep 11, 2019
Sources/FloatingLabelTextField Replace Divider with Rectangle Sep 11, 2019
Tests Initial commit Sep 11, 2019
images Replace Divider with Rectangle Sep 11, 2019
.gitignore
Package.swift Initial commit Sep 11, 2019
README.md Initial commit Sep 11, 2019

README.md

FloatingLabelTextField

A simple SwiftUI FloatingLabelTextField component which shows floating lable for TextField.

Screenshot

Installation

Install through Swift Package Manager.

Example

@State var name = ""
@State var age = ""

var body: some View {
  VStack {
    FloatingLabelTextField(placeHolder: "Input your name", text: $name)
    FloatingLabelTextField(placeHolder: "Input your age", text: $age)
  }
}

TODO:

  1. For SecureField
You can’t perform that action at this time.