Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wiruzx committed Jun 21, 2020
1 parent 20c3357 commit b87bcf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Usage
-----

```swift
let label = HyperLabel()
let label = HLHyperLabel()

// Set additional attributes which will be applied for added links
label.additionalLinkAttributes = [
Expand All @@ -34,7 +34,7 @@ label.additionalLinkAttributes = [
label.text = "Hello world!"

// Get range of the link
let linkRange = text.range(of: "world")!
let linkRange = (text as NSString).range(of: "world")

// Add handler for range
label.addLink(withRange: linkRange) {
Expand Down

0 comments on commit b87bcf3

Please sign in to comment.