File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ - (void)setTextContentType:(NSString *)type
239
239
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 120000 /* __IPHONE_12_0 */
240
240
if (@available (iOS 12.0 , *)) {
241
241
NSDictionary <NSString *, NSString *> * iOS12extras = @{@" newPassword" : UITextContentTypeNewPassword,
242
- @" oneTimeCode" : UITextContentTypeOneTimeCode};
242
+ @" oneTimeCode" : UITextContentTypeOneTimeCode};
243
243
244
244
NSMutableDictionary <NSString *, NSString *> * iOS12baseMap = [contentTypeMap mutableCopy ];
245
245
[iOS12baseMap addEntriesFromDictionary: iOS12extras];
@@ -251,7 +251,7 @@ - (void)setTextContentType:(NSString *)type
251
251
252
252
// Setting textContentType to an empty string will disable any
253
253
// default behaviour, like the autofill bar for password inputs
254
- self.backedTextInputView .textContentType = type ? contentTypeMap[type] : type;
254
+ self.backedTextInputView .textContentType = contentTypeMap[type] ? : type;
255
255
}
256
256
#endif
257
257
}
You can’t perform that action at this time.
0 commit comments