AccessGroup

public struct AccessGroup

A structure representing an access group for managing keychain items.

  • The name of the access group.

    Declaration

    Swift

    public let name: String?
  • A flag indicating whether to migrate keychain items.

    Declaration

    Swift

    public let migrateKeychainItems: Bool
  • Initializes an AccessGroup with the specified name and migration option.

    Declaration

    Swift

    public init(name: String, migrateKeychainItemsOfUserSession: Bool = false)

    Parameters

    name

    The name of the access group.

    migrateKeychainItemsOfUserSession

    A flag indicating whether to migrate keychain items. Defaults to false.

  • Creates an AccessGroup instance with no specified name.

    Declaration

    Swift

    public static func none(migrateKeychainItemsOfUserSession: Bool) -> AccessGroup

    Parameters

    migrateKeychainItemsOfUserSession

    A flag indicating whether to migrate keychain items.

    Return Value

    An AccessGroup instance with the migration option set.

  • A static property representing an AccessGroup with no name and no migration.

    Declaration

    Swift

    public static var none: AccessGroup { get }

    Return Value

    An AccessGroup instance with no name and the migration option set to false.