PinCollector
public protocol PinCollector : AnyObject
A protocol for collecting a PIN from the user.
Conforming types can provide custom UI for PIN collection.
-
Called to collect a PIN from the user.
Declaration
Swift
func collectPin(prompt: Prompt, completion: @escaping @Sendable (String?) -> Void)Parameters
promptThe
Promptobject containing title and description to be shown to the user.completionThe closure to call with the collected PIN, or
nilif collection was cancelled.
View on GitHub