ObjectiveCPropertyAttribute
public struct ObjectiveCPropertyAttribute : OptionSet
Enumerates the known attributes that can appear on an Objective-C property.
-
Declaration
Swift
public let rawValue: UInt32
-
Declaration
Swift
public init(rawValue: UInt32)
-
Indicates a property has
readonly
access.Declaration
Swift
public static let readonly: ObjectiveCPropertyAttribute
-
Indicates a property has a customized getter name.
Declaration
Swift
public static let getter: ObjectiveCPropertyAttribute
-
Indicates a property has
assign
ownership.Declaration
Swift
public static let assign: ObjectiveCPropertyAttribute
-
Indicates a property has
readwrite
access.Declaration
Swift
public static let readwrite: ObjectiveCPropertyAttribute
-
Indicates a property has
retain
ownership.Declaration
Swift
public static let retain: ObjectiveCPropertyAttribute
-
Indicates a property has
copy
ownership.Declaration
Swift
public static let copy: ObjectiveCPropertyAttribute
-
Indicates a property has
nonatomic
accessors.Declaration
Swift
public static let nonatomic: ObjectiveCPropertyAttribute
-
Indicates a property has a customized setter name.
Declaration
Swift
public static let setter: ObjectiveCPropertyAttribute
-
Indicates a property has
atomic
accessors.Declaration
Swift
public static let atomic: ObjectiveCPropertyAttribute
-
Indicates a property has
weak
ownership.Declaration
Swift
public static let weak: ObjectiveCPropertyAttribute
-
Indicates a property has
strong
ownership.Declaration
Swift
public static let strong: ObjectiveCPropertyAttribute
-
Indicates a property has
unsafe_unretained
ownership.Declaration
Swift
public static let unsafeUnretained: ObjectiveCPropertyAttribute
-
Indicates a property has an explicit nullability annotation.
Declaration
Swift
public static let nullability: ObjectiveCPropertyAttribute
-
Indicates a property is null_resettable.
Declaration
Swift
public static let nullResettable: ObjectiveCPropertyAttribute
-
Indicates a property is a
class
property.Declaration
Swift
public static let `class`: ObjectiveCPropertyAttribute