Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Package Manager Support #335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// swift-tools-version:5.0

import PackageDescription

let package = Package(
name: "Spring",
platforms: [
.iOS(.v8), .tvOS(.v11)
],
products: [
.library(name: "Spring", targets: ["Spring"])
],
targets: [
.target(name: "Spring", path: "Spring"
)
],
swiftLanguageVersions: [.v5]
)
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,32 @@
Requires Xcode 10 and Swift 4.2.

## Installation

Spring can be installed through the following options.

### Manual

Drop in the Spring folder to your Xcode project (make sure to enable "Copy items if needed" and "Create groups").

Or via CocoaPods:
### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html)

```
use_frameworks!
pod 'Spring', :git => 'https://github.com/MengTo/Spring.git'
```

### [Swift Package Manager](https://github.com/apple/swift-package-manager)

From inside Xode go to File -> Swift Packages -> Add Package Dependency and paste 'https://github.com/MengTo/Spring.git' into the top field.

Alternatively you can add the following inside your Package.swift file:

```
dependencies: [
.package(url: "https://github.com/MengTo/Spring.git", from: "1.0.6")
]
```

## Usage with Storyboard
In Identity Inspector, connect the UIView to SpringView Class and set the animation properties in Attribute Inspector.

Expand Down