A formatted text field for SwiftUI that offers live formatting for the end-user

TextFieldFormatting

v0.1.0

A formatted text field that offers live changes for the end-user.

Overview:

This is a Text Field package for SwiftUI that offers live formatting of a textfield. Specifically, this package assists with displaying numbered text labels during user input, while keeping the numbers formatted appropriately. Rather than showing the correct format upon a user committing to a change, Text Field Formatting offers live display during user input.

Requirements:

macOS(v12), iOS(v15), tvOS(v15), watchOS(v8)

Bugs:

- Non- US-like decimal formats do not work. (example: German)

Change Log:

v0.1.0

- The initial release. 
- Currently supports decimal format for US or similar decimal formats.

Flow Chart:

- User Input
- Process
    - Filter
    - Then:
        - Decimal?
        - Currency?
        - Percent?
        
- Format
- Set User Input 
- Then:
    - Callback functions

GitHub

View Github