support building against iOS SDK < 13.0

This commit is contained in:
Andrey Filipenkov committed 2022-09-24 15:55:25 +03:00
1 parent d2ded404bb
commit b8eef4ce35
3 files changed
+13

No files matched your search

+2
View File
@@ -46,9 +46,11 @@
textField.frame = r;
self.gameChatHandler.textFieldSDL = textField;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
if(@available(iOS 13.0, *))
textField.backgroundColor = UIColor.systemBackgroundColor;
else
#endif
textField.backgroundColor = UIColor.whiteColor;
auto longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)];