RLMPropertyDescriptor

Objective-C


@interface RLMPropertyDescriptor : NSObject

Swift

@_nonSendable(_assumed) class RLMPropertyDescriptor : NSObject, @unchecked Sendable

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 (nonatomic, readonly) Class _Nonnull objectClass;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var propertyName: String { get }