Skip to content

Commit

Permalink
[ADD] SPM support
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickl committed Mar 1, 2016
1 parent ec7448e commit 4a15247
Show file tree
Hide file tree
Showing 15 changed files with 147 additions and 95 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change log

## [Version 1.0.0](https://github.com/yannickl/FlowingMenu/releases/tag/1.0.0)
Released on 2016-03-01.

- [ADD] Swift Package Manager support

## [Version 0.3.0](https://github.com/yannickl/FlowingMenu/releases/tag/0.3.0)
Released on 2016-01-24.

Expand Down
2 changes: 1 addition & 1 deletion Example/FlowingMenu/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
178 changes: 89 additions & 89 deletions Example/FlowingMenuExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Example/FlowingMenuExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.2.0</string>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions Example/FlowingMenuExample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ViewController: UIViewController, UITableViewDataSource, FlowingMenuDelega

flowingMenuTransitionManager.setInteractivePresentationView(view)
flowingMenuTransitionManager.delegate = self

topBar.tintColor = .whiteColor()
topBar.barTintColor = mainColor
topBar.titleTextAttributes = [
Expand Down Expand Up @@ -89,7 +89,7 @@ class ViewController: UIViewController, UITableViewDataSource, FlowingMenuDelega
cell.avatarImageView.image = user.avatarImage()

cell.contentView.backgroundColor = indexPath.row % 2 == 0 ? derivatedColor : mainColor

return cell
}
}
Expand Down
31 changes: 31 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// FlowingMenu
//
// Copyright 2015-present Yannick Loriot.
// http://yannickloriot.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

import PackageDescription

let package = Package(
name: "FlowingMenu"
)

20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

use_frameworks!
pod 'FlowingMenu', '~> 0.3.0'
pod 'FlowingMenu', '~> 1.0.0'
```

Install into your project:
Expand Down Expand Up @@ -123,9 +123,25 @@ $ brew install carthage
To integrate `FlowingMenu` into your Xcode project using Carthage, specify it in your `Cartfile` file:

```ogdl
github "yannickl/FlowingMenu" >= 0.3.0
github "yannickl/FlowingMenu" >= 1.0.0
```

#### Swift Package Manager
You can use [The Swift Package Manager](https://swift.org/package-manager) to install `FlowingMenu` by adding the proper description to your `Package.swift` file:
```swift
import PackageDescription

let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.Package(url: "https://github.com/yannickl/FlowingMenu.git", versions: "1.0.0" ..< Version.max)
]
)
```

Note that the [Swift Package Manager](https://swift.org/package-manager) is still in early design and development, for more infomation checkout its [GitHub Page](https://github.com/apple/swift-package-manager)

#### Manually

[Download](https://github.com/YannickL/FlowingMenu/archive/master.zip) the project and copy the `Splitflap` folder into your project to use it in.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4a15247

Please sign in to comment.