SSOTPPinView is a comprehensive library for iOS projects, designed to streamline the creation and customization of OTP (One Time Password) input views. With support for custom keyboards, extensive OTP view customization, and seamless integration with SwiftUI, SSOTPPinView provides a complete solution for secure and user-friendly OTP entry.
Box | Circle | Underline | None |
---|---|---|---|
- Enhance user experience with a tailored keyboard designed for efficient and secure OTP input, or use the default iOS keyboards.
- Implement OTP input fields that are both functional and aesthetically pleasing.
- Personalize the appearance and behavior of the OTP view to match your app's unique style.
- Easily integrate SSOTPPinView into your SwiftUI projects for modern and responsive user interfaces.
- iOS 16
- Xcode 14
CocoaPods
-
You can use CocoaPods to install SSOTPPinView by adding it to your Podfile:
use_frameworks! pod 'SSOTPPinView'
Swift Package Manager
-
When using Xcode 11 or later, you can install SSOTPPinView by going to your Project settings > Swift Packages and add the repository by providing the GitHub URL. Alternatively, you can go to File > Swift Packages > Add Package Dependencies...
dependencies: [ .package(url: "https://github.com/SimformSolutionsPvtLtd/SSOTPPinView.git", from: "1.0.0") ]
Manually
- Add SSOTPPinView folder from /Sources folder to your project.
import SSOTPPinView
SSOTPPinView(textFieldType: .OTP_VIEW_TYPE_BOX, numberOfCount: 5, keyboardOptions: .customRandomDigitsType) { newValue in
self.otp = newValue
print(otp)
}
.isSecureTextEntry(true)
.keyFontColor(.blue)
.keyFontColor(.black)
.secureTextType(.star)
.textColor(.red)
.fontWeight(.bold)
.lineColor(.red)
.lineWidth(2)
.keyboardBackgroundColor(.white)
.keyFontColor(.red)
.keyStrokeColor(.blue)
Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! 💪
Check out our Contributing Guide for ideas on contributing.
Give a ⭐️ if this project helped you!
This project is licensed under the MIT License - see the LICENSE file for details