Skip to content

Commit 019922f

Browse files
committed
Updated ReadMe file.
1 parent dea9fcc commit 019922f

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

ABWebView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Pod::Spec.new do |s|
33
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
44
s.name = 'ABWebView'
55
s.version = '0.1'
6-
s.summary = 'This is pass code view controller which can be used for getting secure entry from users.'
6+
s.summary = 'This is web view controller which can be used for loading URL using WKWebView.'
77
s.description = <<-DESC
88
A utility control which is using fast WKWebView which is introduced in iOS8. Just set URL to load and it will do the rest. Very easy to implement.
99
DESC

README.md

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# ABPasscode
2-
A utility control with built in functionality of pass code view that takes inputs in the form secure entry from user. To get the call back methods, you must implement it’s delegate methods to get the code, when user finish entering the passcode.
1+
# ABWebView
2+
A utility control which is using fast WKWebView which is introduced in iOS8. Just set URL to load and it will do the rest. Very easy to implement.
33

44
## Demo
55
![gif1](https://raw.githubusercontent.com/asifbilal786/ABPasscodeViewController/screenshots/ABPasscode.gif)
@@ -13,22 +13,22 @@ A utility control with built in functionality of pass code view that takes input
1313
## Adding ABPasscodeViewController to your project
1414

1515
### METHOD 1:
16-
1. Add a pod entry for `ABPasscode` to your Podfile
16+
1. Add a pod entry for `ABWebView` to your Podfile
1717

1818
```ruby
1919
source 'https://github.com/CocoaPods/Specs.git'
2020
platform :ios, '8.0'
2121
use_frameworks!
2222

23-
pod 'ABPasscode', '~> 0.1'
23+
pod 'ABWebView', '~> 0.1'
2424
```
2525

2626
2. Install the pod(s) by running `pod install`.
2727

2828
### MEHTOD 2: (Source files)
2929
Alternatively, you can directly add all files under the folder Core to your project.
3030

31-
1. Download the [latest code version](https://github.com/asifbilal786/ABPasscodeViewController/archive/master.zip) or add the repository as a git submodule to your git-tracked project.
31+
1. Download the [latest code version](https://github.com/asifbilal786/ABWebView/archive/master.zip) or add the repository as a git submodule to your git-tracked project.
3232
2. Open your Xcode project, then drag and drop source directory onto your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.
3333

3434

@@ -45,23 +45,9 @@ navigationController?.pushViewController(passcodeVC, animated: true)
4545
And then call the delegate functions for different event.
4646

4747
```
48-
extension ViewController: PasscodeViewDelegate {
49-
50-
func passcodeView(_ passcodeView: PasscodeViewController, didEnteredCode code: String) {
51-
52-
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
53-
54-
self.navigationController?.popViewController(animated: true)
55-
self.lblPasscode.text = "Entered Code: \(code)"
56-
}
57-
58-
}
59-
60-
func passcodeView(_ passcodeView: PasscodeViewController, didTapResendButton resendButton: UIButton) {
61-
62-
}
63-
64-
}
48+
let webViewController = ABWebViewController()
49+
webViewController.URLToLoad = "https://apple.com"
50+
navigationController?.pushViewController(webViewController, animated: true)
6551
```
6652

6753
See example projects for detail.

0 commit comments

Comments
 (0)