Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
Swift Package Manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Tan authored and Jerome Tan committed Apr 11, 2016
1 parent b18d632 commit 9c914bc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Package.swift
@@ -0,0 +1,3 @@
import PackageDescription

let package = Package(name: "LocationPicker")
24 changes: 23 additions & 1 deletion README.md
Expand Up @@ -13,6 +13,7 @@ A ready for use and fully customizable location picker for your app.
* [Installation](#installation)
- [Cocoapods](#cocoapods)
- [Carthage](#carthage)
- [Swift Package Manager](#swift-package-manager)
- [Manually](#manually)
* [Quick Start](#quick-start)
- [Programmatically](#programmatically)
Expand Down Expand Up @@ -76,12 +77,32 @@ $ brew update
$ brew install carthage
```

To integrate Permission into your Xcode project using Carthage, specify it in your `Cartfile`:
To integrate `LocationPicker` into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "JeromeTan1997/LocationPicker"
```

### Swift Package Manager

[Swift Package Manager](#https://swift.org/package-manager/) is a tool for managing the distribution of Swift code.

Swift Package Manager is currently only available with the Swift 3 development [snapshots](#https://swift.org/download/).

To integrate `LocationPicker` into your Xcode project using Swift Package Manager, specify it in your `Packages.swift`:

```swift
import PackageDescription

let package = Package(
name: "Your Project Name",
targets: [],
dependencies: [
.Package(url: "https://github.com/JeromeTan1997/LocationPicker.git", versions: "1.0.1" ..< Version.max)
]
)
```

### Manually

Download [LocationPicker Framework](https://github.com/JeromeTan1997/LocationPicker/releases/download/1.0.1/LocationPicker.framework.zip), add it to __Embedded Binaries__ and __Linked Frameworks and Libraries__ in your __Target__.
Expand Down Expand Up @@ -419,6 +440,7 @@ If you don't want to store `LocationItem` objects as `NSData`, you can just stor
* If you want to add more features to `LocationPicker`, you are more than welcome to create pull requests.
* If you are good at English, please correct my English.
* If you like the project, please star it and share with others.
* If you have used LocationPicker in your App, please tell me by creating an issue.

## License

Expand Down

0 comments on commit 9c914bc

Please sign in to comment.