diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..db593539 --- /dev/null +++ b/Package.swift @@ -0,0 +1,17 @@ +// swift-tools-version:4.2 +import PackageDescription + +let package = Package( + name: "XLPagerTabStrip", + // platforms: [.iOS("9.3")], + products: [ + .library(name: "XLPagerTabStrip", targets: ["XLPagerTabStrip"]) + ], + targets: [ + .target( + name: "XLPagerTabStrip", + path: "Sources", + exclude: ["FXPageControl.h", "FXPageControl.m"] + ) + ] +) diff --git a/README.md b/README.md index 40fb0171..1e311e81 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Platform iOS Swift 4 compatible Carthage compatible +Accio supported CocoaPods compatible License: MIT @@ -318,6 +319,29 @@ To install XLPagerTabStrip, simply add the following line to your Cartfile: github "xmartlabs/XLPagerTabStrip" ~> 8.1 ``` +### Accio + +[Accio](https://github.com/JamitLabs/Accio) is a SwiftPM based dependency manager with improvements over Carthage. + +To install XLPagerTabStrip, simply add the following to your Package.swift: + +```swift +.package(url: "https://github.com/xmartlabs/XLPagerTabStrip.git", .upToNextMajor(from: "9.0.0")), +``` + +Next, add `XLPagerTabStrip` to your App targets dependencies like so: + +```swift +.target( + name: "App", + dependencies: [ + "XLPagerTabStrip", + ] +), +``` + +Then run `accio update`. + ## FAQ #### How to change the visible child view controller programmatically