Skip to content

Commit

Permalink
add swift package manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Gille committed Sep 28, 2018
1 parent 25e4bf5 commit 2348e0e
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
4 changes: 2 additions & 2 deletions EliminationMenu.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = 'EliminationMenu'
s.version = '1.0.1'
s.version = '1.0.2'
s.swift_version = '4.2'

s.summary = 'A menu that eliminates all values which were not selected.'
s.author = { 'Roman Gille' => '[email protected]' }
s.homepage = 'https://github.com/r-dent/EliminationMenu'
s.license = { :type => 'MIT', :file => 'LICENSE' }

s.source = { :git => 'https://github.com/r-dent/EliminationMenu.git', :tag => "v#{s.version}" }
s.source = { :git => 'https://github.com/r-dent/EliminationMenu.git', :tag => "#{s.version}" }
s.source_files = 'Sources/*.swift'

s.requires_arc = true
Expand Down
26 changes: 26 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "EliminationMenu",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "EliminationMenu",
targets: ["EliminationMenu"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "EliminationMenu",
path: "./Sources"
)
]
)
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
# EliminationMenu
[![Travis](https://img.shields.io/travis/r-dent/EliminationMenu.svg)](https://travis-ci.org/r-dent/EliminationMenu)
[![CocoaPods](https://img.shields.io/cocoapods/v/EliminationMenu.svg)](http://cocoadocs.org/docsets/EliminationMenu)
[![Platform](https://img.shields.io/cocoapods/p/EliminationMenu.svg)](http://cocoadocs.org/docsets/EliminationMenu)
[![CocoaPods](https://img.shields.io/cocoapods/l/EliminationMenu.svg)](LICENSE)
[![Travis](https://img.shields.io/travis/r-dent/EliminationMenu.svg)](https://travis-ci.org/r-dent/EliminationMenu)
[![Platform](https://img.shields.io/cocoapods/p/EliminationMenu.svg)](http://cocoadocs.org/docsets/EliminationMenu)

Some kind of menu that eliminates all values which were not selected.

<p align="center" >
<img src="https://raw.githubusercontent.com/r-dent/EliminationMenu/master/Resources/EliminationMenu.gif" />
<p>
<img src="https://raw.githubusercontent.com/r-dent/EliminationMenu/master/Resources/EliminationMenu.gif" />
</p>

## Installation

Just drag the Folder `Sources` into your project.

Or if you´re using CocoaPods, add this to your Podfile:
### Cocoapods

If you´re using [CocoaPods](https://cocoapods.org), add this to your Podfile:

pod EliminationMenu

### Swift Package Manager

To add EliminationMenu to a [Swift Package Manager](https://swift.org/package-manager/) based project, add the following:

```swift
.package(url: "https://github.com/r-dent/EliminationMenu", from: "1.0.2")
```

to the `dependencies` value of your `Package.swift`.


## Usage

Expand Down

0 comments on commit 2348e0e

Please sign in to comment.