Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kean authored Aug 30, 2024
1 parent cb02660 commit a2ffb1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Example usage:

```swift
// Core API
anchors.top.equal(superview.top)
anchors.width.equal(anchors.height * 2)
view.anchors.top.equal(superview.top)
view.anchors.width.equal(view.anchors.height * 2)

// Semantic API
anchors.edges.pin(insets: 20) // Pins to superview
anchors.edges.pin(to: superview.safeAreaLayoutGuide, insets: 20)
anchors.width.clamp(to: 10...40)
view.anchors.edges.pin(insets: 20) // Pins to superview
view.anchors.edges.pin(to: superview.safeAreaLayoutGuide, insets: 20)
view.anchors.width.clamp(to: 10...40)
```

And here's something a bit more powerful:
Expand Down

0 comments on commit a2ffb1b

Please sign in to comment.