Skip to content

Commit 747a78e

Browse files
committed
Fix OTP not being available when targeting lower versions of the iOS SDK
1 parent e135f50 commit 747a78e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

PhoneAuth/FirebasePhoneAuthUI/FUICodeField.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ - (void)setUpFromNib {
5959
UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
6060
self.inputField.userInteractionEnabled = YES;
6161

62-
#if __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0
6362
if (@available(iOS 12.0, *)) {
6463
self.inputField.textContentType = UITextContentTypeOneTimeCode;
6564
}
66-
#endif // __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0
6765

6866
// Initialization code
6967
_codeEntry = [NSMutableString string];
@@ -175,11 +173,9 @@ - (CGSize)intrinsicContentSize {
175173
}
176174

177175
- (UITextContentType _Null_unspecified)textContentType {
178-
#if __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0
179176
if (@available(iOS 12.0, *)) {
180177
return UITextContentTypeOneTimeCode;
181178
}
182-
#endif // __IPHONE_OS_MIN_VERSION_REQUIRED > __IPHONE_12_0
183179
return nil;
184180
}
185181

0 commit comments

Comments
 (0)