diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..6bb5c1f --- /dev/null +++ b/Package.swift @@ -0,0 +1,16 @@ +// swift-tools-version:4.2 +import PackageDescription + +let package = Package( + name: "FoldingCell", + // platforms: [.iOS("8.0")], + products: [ + .library(name: "FoldingCell", targets: ["FoldingCell"]) + ], + targets: [ + .target( + name: "FoldingCell", + path: "FoldingCell/FoldingCell" + ) + ] +) diff --git a/README.md b/README.md index 7565ad4..4556223 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ ___ [![Travis](https://img.shields.io/travis/Ramotion/folding-cell.svg)](https://travis-ci.org/Ramotion/folding-cell) [![codebeat badge](https://codebeat.co/badges/6f67da5d-c416-4bac-9fb7-c2dc938feedc)](https://codebeat.co/projects/github-com-ramotion-folding-cell) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -[![Swift 4.0](https://img.shields.io/badge/Swift-5.0-green.svg?style=flat)](https://developer.apple.com/swift/) +[![Accio supported](https://img.shields.io/badge/Accio-supported-0A7CF5.svg?style=flat)](https://github.com/JamitLabs/Accio) +[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-green.svg?style=flat)](https://developer.apple.com/swift/) [![Analytics](https://ga-beacon.appspot.com/UA-84973210-1/ramotion/folding-cell)](https://github.com/igrigorik/ga-beacon) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://paypal.me/Ramotion) @@ -50,8 +51,10 @@ or [Carthage](https://github.com/Carthage/Carthage) users can simply add Mantle ``` github "Ramotion/folding-cell" ``` - -or just drag and drop FoldingCell.swift file to your project +or use [Accio](https://github.com/JamitLabs/Accio) with Package.swift: +```swift +.package(url: "https://github.com/Ramotion/folding-cell.git", .upToNextMajor(from: "5.0.0")), +``` ## Solution ![Solution](https://raw.githubusercontent.com/Ramotion/folding-cell/master/Tutorial-resources/Solution.png)