FioriPasscodeRule

public struct FioriPasscodeRule

A user-defined passcode rule that can be added to a FioriPasscodePolicy.

  • The text shown for this rule in the requirement checklist.

    Declaration

    Swift

    public let displayName: String
  • Whether this rule is shown to the user in the checklist.

    Declaration

    Swift

    public let isDisplayed: Bool
  • Creates a user-defined passcode rule.

    Declaration

    Swift

    public init(displayName: String, isDisplayed: Bool, rule: @escaping (String) -> Bool)

    Parameters

    displayName

    The text shown for this rule in the requirement checklist.

    isDisplayed

    Whether this rule is shown to the user in the checklist.

    rule

    The closure that returns true when the passcode satisfies the rule.