From 4848cfc1f5d19f94ffa5225f88a75aa29edd8421 Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Fri, 19 Apr 2024 10:04:16 -0700 Subject: [PATCH] Improve SPM information in readme --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 64b6a081..e768dc13 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,9 @@ Code written with Layout leverages a high fidelity syntax, meaning it is easy to ## Installation -**Swift Package Manager Dependency** +### Swift Package Manager + +**Package Dependency** > Replace `` with the desired minimum version. @@ -33,6 +35,26 @@ Code written with Layout leverages a high fidelity syntax, meaning it is easy to .package(url: "https://github.com/Tinder/Layout.git", from: "") ``` +**Target Dependencies** + +Layout + +``` +"Layout" +``` + +Snapshot Testing Extensions _(for test targets)_ + +``` +.product(name: "SnapshotTestingExtensions", package: "Layout") +``` + +### Swift Package Collection + +```swift +https://swiftpackageindex.com/Tinder/collection.json +``` + ## Usage The following example demonstrates adding a label, an image view and a button as subviews of a view controller's view.