FLEXObjectRef.h 554 B

1234567891011121314151617181920212223
  1. //
  2. // FLEXObjectRef.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 7/24/18.
  6. // Copyright (c) 2018 Flipboard. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface FLEXObjectRef : NSObject
  10. + (instancetype)referencing:(id)object;
  11. + (instancetype)referencing:(id)object ivar:(NSString *)ivarName;
  12. + (NSArray<FLEXObjectRef *> *)referencingAll:(NSArray *)objects;
  13. /// For example, "NSString 0x1d4085d0" or "NSLayoutConstraint _object"
  14. @property (nonatomic, readonly) NSString *reference;
  15. @property (nonatomic, readonly) id object;
  16. @end