@@ -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 {
@@ -2077,10 +2076,6 @@ - (void)removeEnableFlutterTextInputViewAccessibilityTimer {
20772076 return _activeView;
20782077}
20792078
2080- - (id <FlutterTextInputDelegate>)textInputDelegate {
2081- return _textInputDelegate;
2082- }
2083-
20842079- (void )handleMethodCall : (FlutterMethodCall*)call result : (FlutterResult)result {
20852080 NSString * method = call.method ;
20862081 id args = call.arguments ;
0 commit comments