Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version:5.5
import PackageDescription

let package = Package(
name: "CollectionLayouts",
platforms: [
.iOS(.v10)
],
products: [
.library(
name: "StoriesLayout",
targets: ["StoriesLayout"]
),
.library(
name: "SafariLayout",
targets: ["SafariLayout"]
)
],
targets: [
.target(
name: "StoriesLayout",
path: "StoriesLayout/Classes"
),
.target(
name: "SafariLayout",
path: "SafariLayout/Classes"
)
]
)
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,24 @@ This is a UICollectionViewLayout that reproduce the Instagram Stories experience
just use StoriesCollectionViewLayout in your UICollectionView and subclass your cells from StoriesCollectionViewCell!

### Installation
* Via cocoapods:

**via Cocoapods:**

```ruby
pod 'StoriesLayout'
```

**via Swift Package Manager:**

Add the package in Xcode: **File > Add Packages…** and use:

```
https://github.com/Oni-zerone/CollectionLayouts
```

Then import one of:
- `StoriesLayout`
- `SafariLayout`

### Usage
You can find more info about usage in the [wiki](https://github.com/Oni-zerone/CollectionLayouts/wiki/StoriesLayout)