Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5f48b23

Browse files
review
1 parent 2bc2661 commit 5f48b23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,11 +702,12 @@ - (void)forwardInvocation:(NSInvocation*)anInvocation {
702702
@end
703703

704704
@interface FlutterTextInputPlugin ()
705-
@property(nonatomic, readonly) id<FlutterTextInputDelegate> textInputDelegate;
705+
@property(nonatomic, readonly, weak) id<FlutterTextInputDelegate> textInputDelegate;
706706
@property(nonatomic, readonly) UIView* hostView;
707707
@end
708708

709709
@interface FlutterTextInputView ()
710+
@property(nonatomic, readonly, weak) FlutterTextInputPlugin* textInputPlugin;
710711
@property(nonatomic, copy) NSString* autofillId;
711712
@property(nonatomic, readonly) CATransform3D editableTransform;
712713
@property(nonatomic, assign) CGRect markedRect;
@@ -721,7 +722,6 @@ - (void)setEditableTransform:(NSArray*)matrix;
721722
@end
722723

723724
@implementation FlutterTextInputView {
724-
__weak FlutterTextInputPlugin* _textInputPlugin;
725725
int _textInputClient;
726726
const char* _selectionAffinity;
727727
FlutterTextRange* _selectedTextRange;
@@ -2045,7 +2045,6 @@ @interface FlutterTextInputPlugin ()
20452045

20462046
@implementation FlutterTextInputPlugin {
20472047
NSTimer* _enableFlutterTextInputViewAccessibilityTimer;
2048-
__weak id<FlutterTextInputDelegate> _textInputDelegate;
20492048
}
20502049

20512050
- (instancetype)initWithDelegate:(id<FlutterTextInputDelegate>)textInputDelegate {

0 commit comments

Comments
 (0)