Skip to content

Commit a086293

Browse files
committed
Remove no needed code
Now the library supports only version iOS 10+
1 parent 8fc775b commit a086293

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 4.0.2
2+
* Minor change: remove no needed code related to unsupported iOS versions (iOS < 7).
3+
14
# 4.0.1
25
* Made `isCurrentlyOnScreen` public.
36

LTHPasscodeViewController/LTHPasscodeViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@
1212

1313
#define LTHiPad ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
1414

15-
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
1615
#define LTHFailedAttemptLabelHeight [_failedAttemptLabel.text sizeWithAttributes: @{NSFontAttributeName : _labelFont}].height
17-
#else
18-
// Thanks to Kent Nguyen - https://github.com/kentnguyen
19-
#define LTHFailedAttemptLabelHeight [_failedAttemptLabel.text sizeWithFont:_labelFont].height
20-
#endif
2116

2217
#ifndef LTHPasscodeViewControllerStrings
2318
#define LTHPasscodeViewControllerStrings(key) \

0 commit comments

Comments
 (0)