RLMPropertyDescriptor

@interface RLMPropertyDescriptor : NSObject

An RLMPropertyDescriptor instance represents a specific property on a given class.

  • Creates and returns a property descriptor.

    Declaration

    Objective-C

    + (nonnull instancetype)descriptorWithClass:(nonnull Class)objectClass
                                   propertyName:(nonnull NSString *)propertyName;

    Swift

    convenience init(with objectClass: AnyClass, propertyName: String)

    Parameters

    objectClass

    The class of this property descriptor.

    propertyName

    The name of this property descriptor.

  • The class of the property.

    Declaration

    Objective-C

    @property (readonly, nonatomic) Class _Nonnull objectClass;

    Swift

    var objectClass: AnyClass { get }
  • The name of the property.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull propertyName;

    Swift

    var propertyName: String { get }