Skip to content

bullinnyc/OTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages