SKYRelationPredicate

@interface SKYRelationPredicate : NSPredicate

The specifies a condition by whether a user relation exists between two user, one being the user saved in a record attribute an another being the current user.

  • Returns the relation in the predicate.

    Declaration

    Objective-C

    @property (readonly, nonatomic) SKYRelation *_Nonnull relation;

    Swift

    var relation: SKYRelation { get }
  • Returns the key path of the attribute to be compared. The attribute should store the user ID of a user.

    Declaration

    Objective-C

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

    Swift

    var keyPath: String { get }
  • Returns an instance of .

    Declaration

    Objective-C

    + (nonnull instancetype)predicateWithRelation:(nonnull SKYRelation *)relation
                                          keyPath:(nonnull NSString *)keyPath;

    Swift

    convenience init(relation: SKYRelation, keyPath: String)