Skip to content

Commit 722df79

Browse files
committed
Made isCurrentlyOnScreen public
1 parent 942a096 commit 722df79

File tree

3 files changed

+37
-22
lines changed

3 files changed

+37
-22
lines changed

CHANGELOG.md

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 4.0.1
2+
* Made `isCurrentlyOnScreen` public.
3+
4+
# 4.0.0
5+
* Minimum deployment target increased to `10.3`.
6+
* Removed iOS 8 specific code.
7+
* Code style improvements.
8+
* Misc demo project improvements.
9+
110
# 3.9.4
211
* Avoid a crash in iOS 13 accessing the first object of the windows.
312

@@ -28,34 +37,34 @@
2837
* German translations fixed.
2938

3039
# 3.8.5
31-
* Fixed the lock being sometimes disabled when setting the date in the past (Closed [#174](https://github.com/rolandleth/LTHPasscodeViewController/issues/174)).
40+
* Fixed the lock being sometimes disabled when setting the date in the past (Closed [^174](https://github.com/rolandleth/LTHPasscodeViewController/issues/174)).
3241

3342
# 3.8.4
34-
* Fixed not being able to show the keyboard again after dismissing it on iPad (Closed [#171](https://github.com/rolandleth/LTHPasscodeViewController/issues/171)).
43+
* Fixed not being able to show the keyboard again after dismissing it on iPad (Closed [^171](https://github.com/rolandleth/LTHPasscodeViewController/issues/171)).
3544

3645
# 3.8.3
37-
* Added a check that the new passcode is different than the existing one (Closed [#170](https://github.com/rolandleth/LTHPasscodeViewController/issues/170)).
46+
* Added a check that the new passcode is different than the existing one (Closed [^170](https://github.com/rolandleth/LTHPasscodeViewController/issues/170)).
3847
* Improved the handling of `isSimple`.
3948

4049
# 3.8.2
41-
* Fixed the usage of `self.viewLoaded` to `self.isViewLoaded` (Closed [#168](https://github.com/rolandleth/LTHPasscodeViewController/issues/168)).
50+
* Fixed the usage of `self.viewLoaded` to `self.isViewLoaded` (Closed [^168](https://github.com/rolandleth/LTHPasscodeViewController/issues/168)).
4251

4352
# 3.8.1
44-
* Fixed title for lockscreen with navbar (Closed [#165](https://github.com/rolandleth/LTHPasscodeViewController/issues/165)).
53+
* Fixed title for lockscreen with navbar (Closed [^165](https://github.com/rolandleth/LTHPasscodeViewController/issues/165)).
4554

4655
# 3.8.0
47-
* Replaced all instances of `keyWindow` with `LTHMainWindow` (macro that expands `[UIApplication sharedApplication].windows[0]` - explanation in [#164](https://github.com/rolandleth/LTHPasscodeViewController/issues/164).
48-
* Fixed a bug where the UI would not be visible (Closed [#163](https://github.com/rolandleth/LTHPasscodeViewController/issues/163)).
49-
* Made simple passcode configurable (Closed [#157](https://github.com/rolandleth/LTHPasscodeViewController/issues/157)).
56+
* Replaced all instances of `keyWindow` with `LTHMainWindow` (macro that expands `[UIApplication sharedApplication].windows[0]` - explanation in [^164](https://github.com/rolandleth/LTHPasscodeViewController/issues/164).
57+
* Fixed a bug where the UI would not be visible (Closed [^163](https://github.com/rolandleth/LTHPasscodeViewController/issues/163)).
58+
* Made simple passcode configurable (Closed [^157](https://github.com/rolandleth/LTHPasscodeViewController/issues/157)).
5059
* Added a description label, placed below the passcode, to possibly explain the use of the passcode.
5160
* New properties:
5261
* `digitsCount`: the number of digits for the simple passcode, between 4 and 10; can only be changed while there is no passcode active
5362
* `enterPasscodeInfoString`: the text used for the description label
5463
* `displayAdditionalInfoDuringSettingPasscode`: the flag that determines whether to show the description text or not
5564

5665
# 3.7.10
57-
* New delegate method: `passcodeWasEnabled`. Called when the passcode was enabled (Closed [#156](https://github.com/rolandleth/LTHPasscodeViewController/issues/156)).
58-
* New method: `enablePasscodeWhenApplicationEntersBackground`. It reverts what `disablePasscodeWhenApplicationEntersBackground` does: it adds observers for `UIApplicationDidEnterBackgroundNotification` and `UIApplicationWillEnterForegroundNotification` (Closed [#158](https://github.com/rolandleth/LTHPasscodeViewController/issues/158)).
66+
* New delegate method: `passcodeWasEnabled`. Called when the passcode was enabled (Closed [^156](https://github.com/rolandleth/LTHPasscodeViewController/issues/156)).
67+
* New method: `enablePasscodeWhenApplicationEntersBackground`. It reverts what `disablePasscodeWhenApplicationEntersBackground` does: it adds observers for `UIApplicationDidEnterBackgroundNotification` and `UIApplicationWillEnterForegroundNotification` (Closed [^158](https://github.com/rolandleth/LTHPasscodeViewController/issues/158)).
5968

6069
# 3.7.9
6170
* Keychain leaks fixed.
@@ -98,8 +107,8 @@
98107
* Added all localization files inside a bundle.
99108

100109
# 3.6.8
101-
* Rotation fixes (Closed [#74](https://github.com/rolandleth/LTHPasscodeViewController/issues/74) and [#102](https://github.com/rolandleth/LTHPasscodeViewController/issues/102)).
102-
* Fixed crash related to `UIInterfaceOrientationMaskPortrait` (Closed [#129](https://github.com/rolandleth/LTHPasscodeViewController/issues/129)).
110+
* Rotation fixes (Closed [^74](https://github.com/rolandleth/LTHPasscodeViewController/issues/74) and [^102](https://github.com/rolandleth/LTHPasscodeViewController/issues/102)).
111+
* Fixed crash related to `UIInterfaceOrientationMaskPortrait` (Closed [^129](https://github.com/rolandleth/LTHPasscodeViewController/issues/129)).
103112

104113
# 3.6.7
105114
* Navigation bar fixes.
@@ -119,22 +128,22 @@
119128
* Animations for failed attemp.
120129

121130
# 3.6.3
122-
* Moved the `_addObservers` from `init` to `viewWillAppear` (Possible fix for [#74](https://github.com/rolandleth/LTHPasscodeViewController/issues/74)).
131+
* Moved the `_addObservers` from `init` to `viewWillAppear` (Possible fix for [^74](https://github.com/rolandleth/LTHPasscodeViewController/issues/74)).
123132

124133
# 3.6.2
125-
* Hide animatingView and dismiss keyboard when using TouchID (Closed [#99](https://github.com/rolandleth/LTHPasscodeViewController/issues/99)).
134+
* Hide animatingView and dismiss keyboard when using TouchID (Closed [^99](https://github.com/rolandleth/LTHPasscodeViewController/issues/99)).
126135

127136
# 3.6.1
128137
* Ability to change the "Enter passcode" vertical offset.
129138
* Ability to add an image as the view's background.
130139

131140
# 3.6.0
132141
* Portugese localization.
133-
* Posibility to subclass (Closed [#95](https://github.com/rolandleth/LTHPasscodeViewController/issues/95)).
142+
* Posibility to subclass (Closed [^95](https://github.com/rolandleth/LTHPasscodeViewController/issues/95)).
134143

135144
# 3.5.0
136145
* Czech localization.
137-
* Passcode can be beaten by killing the app (Closed [#78](https://github.com/rolandleth/LTHPasscodeViewController/issues/78)).
146+
* Passcode can be beaten by killing the app (Closed [^78](https://github.com/rolandleth/LTHPasscodeViewController/issues/78)).
138147
* Changed some `performSelectorOnMainThread` calls to `dispatch_async`.
139148

140149
# 3.4.0
@@ -145,7 +154,7 @@
145154
* Spanish translations corrections.
146155

147156
# 3.3.2
148-
* Added a close method (Closed [#68](https://github.com/rolandleth/LTHPasscodeViewController/issues/68)).
157+
* Added a close method (Closed [^68](https://github.com/rolandleth/LTHPasscodeViewController/issues/68)).
149158

150159
# 3.3.1
151160
* Fixes.
@@ -154,10 +163,10 @@
154163
* TouchID support.
155164

156165
# 3.2.1
157-
* iPad and iOS 8 layout fixes (Closed [#74](https://github.com/rolandleth/LTHPasscodeViewController/issues/74)).
166+
* iPad and iOS 8 layout fixes (Closed [^74](https://github.com/rolandleth/LTHPasscodeViewController/issues/74)).
158167

159168
# 3.2.0
160-
* Crash when opening the app with turn off view opened (Closed [#80](https://github.com/rolandleth/LTHPasscodeViewController/issues/80)).
169+
* Crash when opening the app with turn off view opened (Closed [^80](https://github.com/rolandleth/LTHPasscodeViewController/issues/80)).
161170

162171
# 3.1.9
163172
* Removed redundant code.
@@ -169,7 +178,7 @@
169178
* Moved the dismissal call before calling the `passcodeWasEnteredSuccessfully` delegate method.
170179

171180
# 3.1.6
172-
* Opening lock screen in landscape (Closed [#72](https://github.com/rolandleth/LTHPasscodeViewController/issues/72)).
181+
* Opening lock screen in landscape (Closed [^72](https://github.com/rolandleth/LTHPasscodeViewController/issues/72)).
173182

174183
# 3.1.5
175184
* Fixed a bug where keyboard did not appear on iOS6.
@@ -200,7 +209,7 @@ New customizable strings:
200209
* reenterNewPasscodeString - The string displayed when asking for the passcode confirmation (changing)
201210

202211
# 3.0.2
203-
Renamed `SFHFKeychainUtils` to `LTHKeychainUtils` due to the possibility of conflicts with a version already present in the project. `LTHKeychainUtils` differs from the original library only by being ARC-compliant, so all the rights and thanks go to the original author, [Buzz Anders](https://github.com/ldandersen).
212+
Renamed `SFHFKeychainUtils` to `LTHKeychainUtils` due to the possibility of conflicts with a version already present in the project. `LTHKeychainUtils` differs from the original library only by being ARC-compliant, so all the rights and thanks go to the original author, [Buzz Anders][1].
204213

205214
# 3.0.1
206215
* Added `+deletePasscodeAndClose`.
@@ -216,3 +225,5 @@ Renamed `SFHFKeychainUtils` to `LTHKeychainUtils` due to the possibility of conf
216225
Please swap the deprecated methods with the suggested ones; I will remove them in the next release.
217226

218227
#### Thanks to everyone for the help and all the suggestions that found their way into this library!
228+
229+
[1]: https://github.com/ldandersen

LTHPasscodeViewController/LTHPasscodeViewController.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@
309309
*/
310310
@property (nonatomic, assign) BOOL allowUnlockWithBiometrics;
311311

312+
/**
313+
@brief A Boolean value that indicates whether the lockscreen is currently on screen or not.
314+
*/
315+
@property (nonatomic, readonly) BOOL isCurrentlyOnScreen;
316+
312317

313318
// MARK: - Methods
314319

LTHPasscodeViewController/LTHPasscodeViewController.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ @interface LTHPasscodeViewController () <UITextFieldDelegate>
7979
@property (nonatomic, assign) BOOL displayedAsModal;
8080
@property (nonatomic, assign) BOOL displayedAsLockScreen;
8181
@property (nonatomic, assign) BOOL isUsingNavBar;
82-
@property (nonatomic, assign) BOOL isCurrentlyOnScreen;
8382
@property (nonatomic, assign) BOOL isSimple; // YES by default
8483
@property (nonatomic, assign) BOOL isUserConfirmingPasscode;
8584
@property (nonatomic, assign) BOOL isUserBeingAskedForNewPasscode;

0 commit comments

Comments
 (0)