diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a147bc7 --- /dev/null +++ b/Package.swift @@ -0,0 +1,16 @@ +// swift-tools-version:4.2 +import PackageDescription + +let package = Package( + name: "Spring", + // platforms: [.iOS("8.0"), tvOS("11.0")], + products: [ + .library(name: "Spring", targets: ["Spring"]) + ], + targets: [ + .target( + name: "Spring", + path: "Spring" + ) + ] +) diff --git a/README.md b/README.md index 34f1430..66a4eed 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,11 @@ use_frameworks! pod 'Spring', :git => 'https://github.com/MengTo/Spring.git' ``` +Or via [Accio](https://github.com/JamitLabs/Accio): +```swift +.package(url: "https://github.com/MengTo/Spring.git", .upToNextMajor(from: "1.0.5")), +``` + ## Usage with Storyboard In Identity Inspector, connect the UIView to SpringView Class and set the animation properties in Attribute Inspector.