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

    prompt

    The Prompt object containing title and description to be shown to the user.

    completion

    The closure to call with the collected PIN, or nil if collection was cancelled.