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 assign semantics.

    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 retain semantics.

    Declaration

    Swift

    public static let retain = ObjCPropertyAttributes(rawValue:
  • The property has copy semantics.

    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 weak reference.

    Declaration

    Swift

    public static let weak = ObjCPropertyAttributes(rawValue:
  • The property is a strong reference.

    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 class property.

    Declaration

    Swift

    public static let `class` = ObjCPropertyAttributes(rawValue: