Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paololeonardi committed Oct 31, 2019
1 parent 0752364 commit ec81a74
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,21 @@ Once you have your Swift package set up, adding WaterfallGrid as a dependency is

```swift
dependencies: [
.package(url: "https://github.com/paololeonardi/WaterfallGrid.git"))
.package(url: "https://github.com/paololeonardi/WaterfallGrid.git", from: "0.2.0")
]
```

### CocoaPods

You can install `WaterfallGrid ` via CocoaPods by adding the following line to your `Podfile`:

```ruby
pod 'WaterfallGrid', '~> 0.2.0'
```

Run the `pod install` command to download the library
and integrate it into your Xcode project.

## Usage

You can create a grid that displays the elements of collection by passing your collection of data and a closure that provides a view for each element in the collection. The grid transforms each element in the collection into a child view by using the supplied closure.
Expand Down

0 comments on commit ec81a74

Please sign in to comment.