diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..483c162 --- /dev/null +++ b/Package.swift @@ -0,0 +1,16 @@ +// swift-tools-version:4.2 +import PackageDescription + +let package = Package( + name: "XLActionController", + // platforms: [.iOS("9.0")], + products: [ + .library(name: "XLActionController", targets: ["XLActionController"]) + ], + targets: [ + .target( + name: "XLActionController", + path: "Source" + ) + ] +) diff --git a/README.md b/README.md index 5b4ab28..740cc0d 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Platform iOS Swift 4 compatible Carthage compatible +Accio supported CocoaPods compatible License: MIT @@ -446,6 +447,29 @@ Specify XLActionController into your project's Carthage: github "xmartlabs/XLActionController" ~> 4.1 ``` +### Accio + +[Accio](https://github.com/JamitLabs/Accio) is a SwiftPM based dependency manager with improvements over Carthage. + +Add the following to your Package.swift: + +```swift +.package(url: "https://github.com/xmartlabs/XLActionController.git", .upToNextMajor(from: "5.0.0")), +``` + +Next, add `XLActionController` to your App targets dependencies like so: + +```swift +.target( + name: "App", + dependencies: [ + "XLActionController", + ] +), +``` + +Then run `accio update`. + ### Manually as Embedded Framework Clone XLActionController as a git [submodule](http://git-scm.com/docs/git-submodule) by