NSDictionary+ObjcRuntime.h 554 B

12345678910111213141516171819202122
  1. //
  2. // NSDictionary+ObjcRuntime.h
  3. // FLEX
  4. //
  5. // Derived from MirrorKit.
  6. // Created by Tanner on 7/5/15.
  7. // Copyright (c) 2020 FLEX Team. All rights reserved.
  8. //
  9. #import <Foundation/Foundation.h>
  10. #import <objc/runtime.h>
  11. @interface NSDictionary (ObjcRuntime)
  12. /// \c kFLEXPropertyAttributeKeyTypeEncoding is the only required key.
  13. /// Keys representing a boolean value should have a value of \c YES instead of an empty string.
  14. - (NSString *)propertyAttributesString;
  15. + (instancetype)attributesDictionaryForProperty:(objc_property_t)property;
  16. @end