We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6260bc4 commit f903a6cCopy full SHA for f903a6c
2 files changed
CHANGELOG.md
@@ -1,3 +1,6 @@
1
+# 3.9.4
2
+* Avoid a crash in iOS 13 accessing the first object of the windows.
3
+
4
# 3.9.3
5
* Fixed a crash in demo project.
6
* Removed unused string.
LTHPasscodeViewController/LTHPasscodeViewController.m
@@ -50,7 +50,7 @@
50
#ifdef LTH_IS_APP_EXTENSION
51
#define LTHMainWindow [UIApplication sharedApplication].keyWindow
52
#else
53
-#define LTHMainWindow [UIApplication sharedApplication].windows[0]
+#define LTHMainWindow [UIApplication sharedApplication].windows.firstObject
54
#endif
55
56
@interface LTHPasscodeViewController () <UITextFieldDelegate>
0 commit comments