ObjCPropertyAttributes
public struct ObjCPropertyAttributes: OptionSet
Property attributes for an Objective-C @property declaration.
-
Declaration
Swift
public let rawValue: RawValue -
Creates a new ObjCPropertyAttributes from a raw integer value.
Declaration
Swift
public init(rawValue: RawValue) -
The property has no attributes.
Declaration
Swift
public static let noattr = ObjCPropertyAttributes(rawValue: -
The property was marked readonly.
Declaration
Swift
public static let readonly = ObjCPropertyAttributes(rawValue: -
The property has an explicit name for the
getter.Declaration
Swift
public static let getter = ObjCPropertyAttributes(rawValue: -
The property has
assignsemantics.Declaration
Swift
public static let assign = ObjCPropertyAttributes(rawValue: -
The property was explicitly marked
readwrite.Declaration
Swift
public static let readwrite = ObjCPropertyAttributes(rawValue: -
The property has
retainsemantics.Declaration
Swift
public static let retain = ObjCPropertyAttributes(rawValue: -
The property has
copysemantics.Declaration
Swift
public static let copy = ObjCPropertyAttributes(rawValue: -
The property will be read
nonatomically.Declaration
Swift
public static let nonatomic = ObjCPropertyAttributes(rawValue: -
The property has an explicit name for the
setter.Declaration
Swift
public static let setter = ObjCPropertyAttributes(rawValue: -
The property will be read
atomically.Declaration
Swift
public static let atomic = ObjCPropertyAttributes(rawValue: -
The property is a
weakreference.Declaration
Swift
public static let weak = ObjCPropertyAttributes(rawValue: -
The property is a
strongreference.Declaration
Swift
public static let strong = ObjCPropertyAttributes(rawValue: -
The property is marked
unsafe_unretained.Declaration
Swift
public static let unsafe_unretained = ObjCPropertyAttributes(rawValue: -
the property is a
classproperty.Declaration
Swift
public static let `class` = ObjCPropertyAttributes(rawValue:
ObjCPropertyAttributes Structure Reference