Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@hadiuzzaman524 hadiuzzaman524 released this 05 Nov 16:17
7093134

SwiftPinput v1.0.0

New Features

  • OTP Input Component: Introducing SwiftPinput, a SwiftUI-based OTP input field for iOS and macOS.
  • Customizable Styles: Choose from five styles for OTP fields:
    • style1: Line at the bottom.
    • style2: Rounded border.
    • style3: Minimal, no border.
    • style4: Underline without rounded corners.
    • style5: Gradient background with rounded border.
  • Field Customization: Easily adjust:
    • OTP code length
    • Field width, height, and corner radius
    • Font, text color, border color, and background color
  • Completion Callback: Automatically triggers an onCompletion callback when the user finishes entering the OTP.

Improvements

  • Responsive Focus Management: Automatically focuses the field on appearance.
  • Input Validation: Filters out non-numeric characters to ensure valid OTP codes.

Requirements

  • iOS: 15.0 or later
  • macOS: 12.0 or later

Known Issues

  • Keyboard Support: Only supports numberPad on iOS; alternative keyboards are not yet supported.

Enjoy enhanced OTP field customization and easy integration with SwiftPinput!