OtpVerifyButton

Button that verifies a complete code. It is enabled only while state is complete and isEnabled is true. The host owns verification: onVerify receives the code and should not also be triggered by OtpField.onComplete for the same code unless it de-duplicates. Use the same alignment as OtpField to keep them aligned. The visible text is also the accessible name. Embed view in SwiftUI with a UIViewRepresentable and keep this object alive.

Constructors

Link copied to clipboard
constructor(accessibility: OtpVerifyAccessibility)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var onVerify: (String) -> Unit?
Link copied to clipboard

Set this to the field's state. The initial value is an empty, incomplete code.

Link copied to clipboard
Link copied to clipboard
val view: UIView

The UIKit view to embed. Size it with sizeThatFits(_:); it spans the proposed width.