BU_RelyWeakProxy.h 394 B

123456789101112131415161718192021
  1. //
  2. // BU_RelyWeakProxy.h
  3. // BURelyFoundation
  4. //
  5. // Created by zth on 2022/7/11.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface BU_RelyWeakProxy : NSProxy
  10. @property (nonatomic, weak, readonly, nullable) id target;
  11. - (nonnull instancetype)initWithTarget:(nonnull id)target;
  12. + (nonnull instancetype)proxyWithTarget:(nonnull id)target;
  13. @end
  14. NS_ASSUME_NONNULL_END