Skip to content

Commit 3fb6778

Browse files
author
Cesar Vargas Casaseca
committed
Merge branch 'master' of https://github.com/toupper/Warhol
2 parents 915be5a + e584867 commit 3fb6778

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ github "toupper/Warhol" ~> 0.1.1
6565

6666
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but Alamofire does support its use on supported platforms.
6767

68-
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
68+
Once you have your Swift package set up, adding Warhol as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
6969

7070
```swift
7171
dependencies: [
@@ -74,7 +74,7 @@ dependencies: [
7474
```
7575
## Manually
7676

77-
You can also integrate Alamofire into your project manually.
77+
You can also integrate Warhol into your project manually.
7878

7979
#### Embedded Framework
8080

@@ -102,6 +102,7 @@ Import Warhol in the file you are going to use it. Create an instance of ```Came
102102

103103
```swift
104104
import Warhol
105+
105106
let cameraViewController = CameraFaceDetectionViewController()
106107
let faceView = FaceView()
107108
faceView.backgroundColor = .clear
@@ -113,6 +114,7 @@ In order to draw, we should create a subclass of UIView that complies with the W
113114

114115
```swift
115116
import Warhol
117+
116118
final class FaceView: UIView, CameraFrontView {
117119
var viewModel: FaceViewModel?
118120

@@ -138,6 +140,7 @@ Apart from that, you can implement the ```CameraFaceDetectionDelegate``` protoco
138140
In order to detect a face features and draw on top, we should pass the sdk the UIImageView depicting the face, and a closure where we draw on top of the image:
139141
```swift
140142
import Warhol
143+
141144
imageView.image = UIImage(named: "Face")
142145
Warhol.drawLandmarks(from: imageView,
143146
draw: { (viewModel, context) in

0 commit comments

Comments
 (0)