Skip to content

Commit

Permalink
Fixed missing weak for DTAccessibilityElement and view proxy #1230
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Mar 22, 2021
1 parent 24823e5 commit c4cb9c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Core/Source/DTAccessibilityElement.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@

#if TARGET_OS_IPHONE && !TARGET_OS_WATCH

#import "DTWeakSupport.h"

static const CGPoint DTAccessibilityElementNullActivationPoint = {CGFLOAT_MAX, CGFLOAT_MAX};

@interface DTAccessibilityElement()
@property (nonatomic, unsafe_unretained) UIView *parentView;
@property (nonatomic, DT_WEAK_PROPERTY) UIView *parentView;
@end

@implementation DTAccessibilityElement
Expand Down
3 changes: 2 additions & 1 deletion Core/Source/DTAccessibilityViewProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#if TARGET_OS_IPHONE && !TARGET_OS_WATCH

#import "DTTextAttachment.h"
#import "DTWeakSupport.h"

@protocol DTAccessibilityViewProxyDelegate;

Expand All @@ -23,7 +24,7 @@
/**
The delegate for the proxy
*/
@property (nonatomic, unsafe_unretained, readonly) id<DTAccessibilityViewProxyDelegate> delegate;
@property (nonatomic, DT_WEAK_PROPERTY, readonly) id<DTAccessibilityViewProxyDelegate> delegate;

/**
The text attachment represented by the proxy
Expand Down
2 changes: 1 addition & 1 deletion Core/Source/DTWeakSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
#define DT_WEAK_VARIABLE
#define DT_WEAK_PROPERTY assign

#endif
#endif

0 comments on commit c4cb9c9

Please sign in to comment.