DefaultUserKeySelector
public class DefaultUserKeySelector : UserKeySelector, @unchecked Sendable
The default implementation of UserKeySelector that uses a system alert to prompt the user.
-
Declaration
Swift
public init() -
selectKey(userKeys:Asynchronousprompt: ) Prompts the user to select a key from the available options using a system alert.
Parameters
userKeysAn array of available user keys to choose from.
promptThe prompt information to display to the user.
Return Value
The selected UserKey, or nil if the user cancels.
View on GitHub