DefaultPinCollector

public class DefaultPinCollector : NSObject, PinCollector, @unchecked Sendable

A default implementation of PinCollector that uses a UIAlertController to prompt the user for their PIN.

  • Presents an alert to collect the PIN.

    Declaration

    Swift

    public func collectPin(prompt: Prompt, completion: @escaping @Sendable (String?) -> Void)

    Parameters

    prompt

    The Prompt object containing the title and description for the alert.

    completion

    The closure to call with the collected PIN.