Skip to content

Commit

Permalink
Improve SPM information in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller committed Apr 19, 2024
1 parent b4b93b5 commit 4848cfc
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,36 @@ 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 `<version>` with the desired minimum version.
```swift
.package(url: "https://github.com/Tinder/Layout.git", from: "<version>")
```

**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.
Expand Down

0 comments on commit 4848cfc

Please sign in to comment.