Swiftpack.co - kenagt/OtpView-SwiftUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by kenagt.
kenagt/OtpView-SwiftUI 1.0.3
Otp view swift package implemented with swift & SwiftUI.
⭐️ 1
🕓 1 year ago
iOS
.package(url: "https://github.com/kenagt/OtpView-SwiftUI.git", from: "1.0.3")

OtpView-SwiftUI

Otp view swift package implemented with Swift & SwiftUI.

How to use

Create an instance It supports AutoLayout completely.

@State var otpCode: String = ""
@State var otpCodeLength: Int = 6
@State var textColor = .black
@State var textSize = CGFloat(27)

var body: some View {
    HStack {
        //OTPTextField { otp, completionHandler in }
        OtpView_SwiftUI(otpCode: $otpCode, otpCodeLengh: $otpCodeLength, textColor: $textColor, textSize: $textSize)
    }
}

Requirements

iOS 15.0+ Swift 5.5+

Installation

  • Supports following:
    • Swift Package Manager

GitHub

link
Stars: 1
Last commit: 3 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics