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

Remove iOS 12 availability checks #49771

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,12 @@ static UITextContentType ToUITextContentType(NSArray<NSString*>* 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];
Expand Down Expand Up @@ -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;
}

Expand Down