Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 473 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 473 Bytes

OTP

One-time password (OTP) for SwiftUI.

Gifs

Usage

struct MyView: View {
    @StateObject private var viewModel = SomeViewModel()
    
    var body: some View {
        OTPView(text: viewModel.code, error: viewModel.codeError) { code in
            viewModel.verification(with: code)
        }
    }
}

Requirements

License

  • OTP is distributed under the MIT License.