From a2ffb1b4d237978f0702ab583546a48056bfc4c0 Mon Sep 17 00:00:00 2001 From: Alex Grebenyuk Date: Fri, 30 Aug 2024 12:56:29 -0400 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 76c7124..0938493 100644 --- a/README.md +++ b/README.md @@ -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: