Skip to content

Commit 5c8efdb

Browse files
authored
Merge pull request #200 from jnavarrom/master
Avoid a crash in iOS 13
2 parents 6260bc4 + f903a6c commit 5c8efdb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 3.9.4
2+
* Avoid a crash in iOS 13 accessing the first object of the windows.
3+
14
# 3.9.3
25
* Fixed a crash in demo project.
36
* Removed unused string.

LTHPasscodeViewController/LTHPasscodeViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#ifdef LTH_IS_APP_EXTENSION
5151
#define LTHMainWindow [UIApplication sharedApplication].keyWindow
5252
#else
53-
#define LTHMainWindow [UIApplication sharedApplication].windows[0]
53+
#define LTHMainWindow [UIApplication sharedApplication].windows.firstObject
5454
#endif
5555

5656
@interface LTHPasscodeViewController () <UITextFieldDelegate>

0 commit comments

Comments
 (0)