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

Commit 74ce8f8

Browse files
review
1 parent 2bc2661 commit 74ce8f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ @interface FlutterTextInputPlugin ()
707707
@end
708708

709709
@interface FlutterTextInputView ()
710+
@property(nonatomic, weak, readonly) 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;
@@ -2041,11 +2041,11 @@ @interface FlutterTextInputPlugin ()
20412041
@property(nonatomic, retain) FlutterTextInputView* activeView;
20422042
@property(nonatomic, retain) FlutterTextInputViewAccessibilityHider* inputHider;
20432043
@property(nonatomic, readonly) id<FlutterViewResponder> viewResponder;
2044+
@property(nonatomic, readonly, weak) id<FlutterTextInputDelegate> textInputDelegate;
20442045
@end
20452046

20462047
@implementation FlutterTextInputPlugin {
20472048
NSTimer* _enableFlutterTextInputViewAccessibilityTimer;
2048-
__weak id<FlutterTextInputDelegate> _textInputDelegate;
20492049
}
20502050

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

0 commit comments

Comments
 (0)