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
AccessGroupwith the specified name and migration option.Declaration
Swift
public init(name: String, migrateKeychainItemsOfUserSession: Bool = false)Parameters
nameThe name of the access group.
migrateKeychainItemsOfUserSessionA flag indicating whether to migrate keychain items. Defaults to
false. -
Creates an
AccessGroupinstance with no specified name.Declaration
Swift
public static func none(migrateKeychainItemsOfUserSession: Bool) -> AccessGroupParameters
migrateKeychainItemsOfUserSessionA flag indicating whether to migrate keychain items.
Return Value
An
AccessGroupinstance with the migration option set. -
A static property representing an
AccessGroupwith no name and no migration.Declaration
Swift
public static var none: AccessGroup { get }Return Value
An
AccessGroupinstance with no name and the migration option set tofalse.
View on GitHub