RLMPropertyDescriptor
@interface RLMPropertyDescriptor : NSObject
This class describes a specific property on a given class.
-
Creates a property descriptor.
Declaration
Objective‑C
+ (nonnull instancetype)descriptorWithClass:(nonnull Class)objectClass propertyName:(nonnull NSString *)propertyName;
Swift
convenience init(withClass 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 }