diff --git a/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm b/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm index 2f5c252898439..4ba6ed66a58a6 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm @@ -1293,7 +1293,9 @@ - (NSString*)textInRange:(UITextRange*)range { if (textRange.location == NSNotFound) { // Avoids [crashes](https://github.com/flutter/flutter/issues/138464) from an assertion // against NSNotFound. - // TODO(hellohuanlin): root cause https://github.com/flutter/flutter/issues/160100 + // TODO(hellohuanlin): This is a temp workaround, but we should look into why + // framework is providing NSNotFound to the engine. + // https://github.com/flutter/flutter/issues/160100 return nil; } // Sanitize the range to prevent going out of bounds. diff --git a/shell/platform/darwin/ios/framework/Source/TextInputSemanticsObject.mm b/shell/platform/darwin/ios/framework/Source/TextInputSemanticsObject.mm index 5d30415449bf6..0057d05e0effc 100644 --- a/shell/platform/darwin/ios/framework/Source/TextInputSemanticsObject.mm +++ b/shell/platform/darwin/ios/framework/Source/TextInputSemanticsObject.mm @@ -45,7 +45,9 @@ - (NSString*)textInRange:(UITextRange*)range { if (textRange.location == NSNotFound) { // Avoids [crashes](https://github.com/flutter/flutter/issues/138464) from an assertion // against NSNotFound. - // TODO(hellohuanlin): https://github.com/flutter/flutter/issues/160100 + // TODO(hellohuanlin): This is a temp workaround, but we should look into why + // framework is providing NSNotFound to the engine. + // https://github.com/flutter/flutter/issues/160100 return nil; } return [self.text substringWithRange:textRange];