Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How it work

A custom SwiftUI TextField to show floating labels and allow flexible validation for user input.

Demo.mov

Add to your project by using SPM

Use SPM to add the custom SwiftUI TextField to your project

The example code for the email input field

// On top of your UI file 
import FloatingInputField

TextInputField(
 "Email address",
 text: $email,
 isValid: $isEmailValid)
  .isMandatory()
  .onValidate { value in
    value.isValidEmail ? .success(true) : .failure(.invalidEmail)
   }
  .autocapitalization(.none)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages