From 7f07cdff274997b4c860d51d719ef1c88bf37a40 Mon Sep 17 00:00:00 2001 From: Tosin Afolabi Date: Mon, 11 Nov 2019 10:52:18 -0800 Subject: [PATCH] Initial SPM Support --- Package.swift | 2 +- README.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index ca45c29a..35eb1deb 100644 --- a/Package.swift +++ b/Package.swift @@ -18,5 +18,5 @@ let package = Package( dependencies: [], path: "PanModal") ], - swiftLanguageVersions: [.version("4.2")] + swiftLanguageVersions: [.version("5.0")] ) diff --git a/README.md b/README.md index 98b03568..4543b609 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,14 @@ pod 'PanModal' github "slackhq/PanModal" ``` +* Swift Package Manager, add the following line to your Package.swift: + +```swift +dependencies: [ + .package(url: "https://github.com/slackhq/PanModal.git", .exact("1.2.6")), +], +``` + ## Usage PanModal was designed to be used effortlessly. Simply call `presentPanModal` in the same way you would expect to present a `UIViewController`