Availability
public struct Availability
Describes the availability of a given declaration for each platform.
-
Whether this declaration is unconditionally deprecated for all platforms.
Declaration
Swift
public let alwaysDeprecated: Bool -
The message to display when alerting someone of this deprecated declaration.
Declaration
Swift
public let deprecationMessage: String? -
Whether this declaration is unconditionally unavailable.
Declaration
Swift
public let alwaysUnavailable: Bool -
The message to display when alerting someone of this unavailable declaration.
Declaration
Swift
public let unavailableMessage: String? -
The specific availability for all platforms specified for this declaration.
Declaration
Swift
public let platforms: [PlatformAvailability]
Availability Structure Reference