diff --git a/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm b/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm index 7168515b1a0d6..5137976f7033c 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm @@ -304,14 +304,12 @@ static UITextContentType ToUITextContentType(NSArray* hints) { return UITextContentTypePassword; } - if (@available(iOS 12.0, *)) { - if ([hint isEqualToString:@"oneTimeCode"]) { - return UITextContentTypeOneTimeCode; - } + if ([hint isEqualToString:@"oneTimeCode"]) { + return UITextContentTypeOneTimeCode; + } - if ([hint isEqualToString:@"newPassword"]) { - return UITextContentTypeNewPassword; - } + if ([hint isEqualToString:@"newPassword"]) { + return UITextContentTypeNewPassword; } return hints[0]; @@ -407,11 +405,10 @@ static BOOL IsFieldPasswordRelated(NSDictionary* configuration) { return YES; } - if (@available(iOS 12.0, *)) { - if ([contentType isEqualToString:UITextContentTypeNewPassword]) { - return YES; - } + if ([contentType isEqualToString:UITextContentTypeNewPassword]) { + return YES; } + return NO; }