You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-4Lines changed: 27 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,31 @@
1
1
# LTHPasscodeViewController
2
2
Simple to use iOS 7 style Passcode - the one you get in Settings when changing your passcode.
3
3
4
+
# Installation
5
+
6
+
### Swift Package Manager
7
+
8
+
__NOTE__: _These instructions are intended for usage on Xcode 11 and higher. Xcode 11 is the first version of Xcode that integrates Swift Package manager and makes it way easier to use than it was at the command line. If you are using older versions of Xcode, we recommend using CocoaPods._
9
+
10
+
1. Go to File > Swift Packages > Add Package Dependency...
11
+
2. Paste the URL to the `LTHPasscodeViewController` repo on GitHub (https://github.com/rolandleth/LTHPasscodeViewController.git) into the search bar, then hit the Next button:
12
+
3. Select what version you want to use, then hit next (Xcode will automatically suggest the current version Up to Next Major).
13
+
4. Select the `LTHPasscodeViewController` library and then hit finish.
14
+
5. You're done!
15
+
16
+
### CocoaPods
17
+
18
+
[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate `LTHPasscodeViewController` into your Xcode project using CocoaPods, specify it in your `Podfile`:
19
+
20
+
```ruby
21
+
pod 'LTHPasscodeViewController', '~> 4.0.1'
22
+
```
23
+
24
+
### Manually
25
+
26
+
Simply clone the repo and drag the contents of `LTHPasscodeViewController` to your project.
27
+
4
28
# How to use
5
-
Drag the contents of `LTHPasscodeViewController` to your project, or add `pod 'LTHPasscodeViewController'` to your Podfile (preffered).
6
29
7
30
If your app uses extensions, `LTH_IS_APP_EXTENSION` needs to be defined:
8
31
@@ -14,8 +37,8 @@ Example, called in `application:didFinishLaunchingWithOptions`:
14
37
```objc
15
38
[LTHPasscodeViewController useKeychain:NO];
16
39
if ([LTHPasscodeViewController doesPasscodeExist]) {
17
-
if ([LTHPasscodeViewController didPasscodeTimerEnd])
0 commit comments