Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hlts2 committed Sep 23, 2018
1 parent 495b1c5 commit e3348b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,26 @@ let hole = Hole(path: UIBezierPath(rect: CGRect(x: 0, y: 0, width: 200, height:
drawer: DrawSquareHole())
```

<img src="https://github.com/hlts2/UIHoleView/blob/master/images/sqare_hole.png" width="100" height="80" />


- Circule Hole

```swift
let hole = Hole(path: UIBezierPath(rect: CGRect(x: 0, y: 0, width: 200, height: 200)),
color: UIColor.clear,
drawer: DrawCircleHole())
```

<img src="https://github.com/hlts2/UIHoleView/blob/master/images/circule_hole.png" width="100" height="80" />

- Rounded Corner Hole

```swift
let hole3 = Hole(path: UIBezierPath(roundedRect: CGRect(x: 0, y: 0, width: 200, height: 200), cornerRadius: 10),
color: UIColor.clear,
drawer: DrawRoundedCornerHole())
```

<img src="https://github.com/hlts2/UIHoleView/blob/master/images/rounded_corner_hole.png" width="100" height="80" />

0 comments on commit e3348b1

Please sign in to comment.