-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
69 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,10 @@ It's really easy to use and it's compatible both with Swift 2.2, 2.3 and 3.0. | |
|
||
Pick the right version: | ||
|
||
- Official **Swift 2.2** is in master (and develop) | ||
- **Swift 2.3** branch is [here](https://github.com/malcommac/SwiftLocation/tree/feature/swift2.3). | ||
- **Swift 3.0** branch is [here](https://github.com/malcommac/SwiftLocation/tree/swift-3.0). | ||
- Old unsupported **Swift 2.0** branch is [here](https://github.com/malcommac/SwiftLocation/tree/swift-2.0) | ||
- **Swift 3.0** is in master (and develop) (CocoaPods Tag >= 1.0.6) | ||
- Old **Swift 2.2** branch is [here](https://github.com/malcommac/SwiftLocation/tree/swift-2.2). (CocoaPods Tag = 1.0.5) | ||
- Old **Swift 2.3** branch is [here](https://github.com/malcommac/SwiftLocation/tree/feature/swift2.3). | ||
- Old **Swift 2.0** branch is [here](https://github.com/malcommac/SwiftLocation/tree/swift-2.0) | ||
|
||
Main features includes: | ||
|
||
|
@@ -43,28 +43,6 @@ If you need background monitoring you should specify ```NSLocationAlwaysUsageDes | |
|
||
I'm collecting all the apps which uses SwiftLocation to manage beacon or location. If you are using SwiftLocation in your project please fill a PR to this file or send an email to [email protected]. | ||
|
||
From SwiftLocation 0.x to 1.0 | ||
------- | ||
Several changes are made from 0.x branch to 1.0 especially from the side of the location manager. | ||
It's pretty easy to align your project with this news version. | ||
Since 1.0 we will keep the API stable and any change will use @available metatag of Swift to keep you in track. | ||
|
||
Changes are: | ||
|
||
#### Renamed Methods | ||
- ```LocationManager.shared.``` is now replaced by ```Location.``` | ||
- ```BeaconManager.shared.``` is now replaced by ```Beacon.``` | ||
- Each request is conform to ```Request``` protocol. Where allowed you can use ```start()```, ```pause()``` or ```cancel()``` a running request. | ||
- ```observeLocations()``` is now replaced with ```getLocation()``` (and it allows you to specify a custom timeout) | ||
- ```observeInterestingPlaces()``` is now replaced with ```getInterestingPlaces()``` | ||
- Reverse geocoding services are now under the ```reverse``` function umbrella (```reverse(location:...), reverse(address:... and reverse(coordinates:...)```) | ||
|
||
#### Other Changes | ||
- ```Accuracy``` now include IP Address Scan (```.IPScan```) to get the current location (```locateByIPAddress()``` was removed). It works as usual, without asking sensor authorization to the user. | ||
- ```observeHeading()``` is now replaced with ```getHeading```. Heading services now works correctly and allow you to specify a frequency (```HeadingFrequency```: ```.Continous(interval)``` to receive new heading at specified time intervals; ```.TrueNorth(minDegree)``` and ```.MagneticNorth(minDegree)``` allows you to receive events only when a specified deviation from the last catched heading is reported). | ||
- ```HeadingRequest``` has now a ```allowsCalibration``` property instead of a ```onCalibrationRequired()``` function. | ||
- ```onSuccess``` handler in ```HeadingRequest``` is now ```onReceiveUpdates``` | ||
|
||
Documentation | ||
------- | ||
|
||
|
@@ -335,6 +313,10 @@ request.onAuthorizationDidChange = { newStatus in | |
Changes | ||
------- | ||
|
||
### Version 1.0.5 (2016/09/09): | ||
- Request's cancel() function now has error as optional argument | ||
- **This is the last Swift 2.2 version** | ||
|
||
### Version 1.0.4 (2016/08/31): | ||
- Added support for ip-api Pro API Key | ||
- Added documentation reference for ip-api limit usage, pro version and app transport security on iOS 9 or later. | ||
|
@@ -380,10 +362,15 @@ platform :ios, '9.0' | |
use_frameworks! | ||
target '<Your Target Name>' do | ||
pod 'SwiftLocation', '~> 1.0' | ||
pod 'SwiftLocation', '~> 1.0.5' | ||
end | ||
``` | ||
|
||
Swift Versions: | ||
|
||
- **Swift 2.2** ```pod 'SwiftLocation', '1.0.5'``` | ||
- **Swift 3** ```pod 'SwiftLocation', '>= 1.0.6'``` | ||
|
||
Then, run the following command: | ||
|
||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+678 Bytes
(100%)
...project.xcworkspace/xcuserdata/danielemargutti.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters