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

Commit 2feb124

Browse files
committed
addressing comment
1 parent 6cbb4d3 commit 2feb124

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,13 @@ - (BOOL)isEqualTo:(FlutterTextRange*)other {
380380

381381
#pragma mark - FlutterTokenizer
382382

383-
@implementation FlutterTokenizer {
384-
FlutterTextInputView* _textInputView;
385-
}
383+
@interface FlutterTokenizer ()
384+
385+
@property(nonatomic, assign) FlutterTextInputView* textInputView;
386+
387+
@end
388+
389+
@implementation FlutterTokenizer
386390

387391
- (instancetype)initWithTextInput:(UIResponder<UITextInput>*)textInput {
388392
NSAssert([textInput isKindOfClass:[FlutterTextInputView class]],
@@ -409,6 +413,7 @@ - (UITextRange*)rangeEnclosingPosition:(UITextPosition*)position
409413
case UITextGranularitySentence:
410414
case UITextGranularityParagraph:
411415
case UITextGranularityDocument:
416+
// The UITextInputStringTokenizer can handle all these cases correctly.
412417
result = [super rangeEnclosingPosition:position
413418
withGranularity:granularity
414419
inDirection:direction];

0 commit comments

Comments
 (0)