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

[ios] Make MGLLocationManager protocol swift friendly. #14477

Merged
merged 2 commits into from
Apr 24, 2019

Conversation

fabian-guerra
Copy link
Contributor

Fixes #14447

MGLLocationManager protocol is not swift friendly. Optional properties does not work well. This pr changes the properties for explicit setters/getters, although in ObjC there would be no difference; in swift it will require the direct invocation of each.

@fabian-guerra fabian-guerra added iOS Mapbox Maps SDK for iOS Swift Specific to the Swift/Objective-C bridge on iOS or macOS needs changelog Indicates PR needs a changelog entry prior to merging. labels Apr 22, 2019
@fabian-guerra fabian-guerra added this to the release-mojito milestone Apr 22, 2019
@fabian-guerra fabian-guerra requested a review from julianrex April 22, 2019 21:57
@fabian-guerra fabian-guerra requested a review from 1ec5 as a code owner April 22, 2019 21:57
@fabian-guerra fabian-guerra requested a review from a team April 22, 2019 21:57
@fabian-guerra fabian-guerra self-assigned this Apr 22, 2019
@fabian-guerra fabian-guerra removed the needs changelog Indicates PR needs a changelog entry prior to merging. label Apr 22, 2019
@julianrex
Copy link
Contributor

Can we add some Swift tests for these?

Copy link
Contributor

@julianrex julianrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting that we're planning to add a Swift (and Obj-C) example to demonstrate this API after the iosapp refactor.

@fabian-guerra fabian-guerra merged commit 88a6525 into master Apr 24, 2019
@fabian-guerra fabian-guerra deleted the fabian-swift-14447 branch April 24, 2019 16:12
fabian-guerra added a commit that referenced this pull request Apr 24, 2019
Improved MGLLocationManager protocol bridging to swift.

* [ios] Make MGLLocationManager protocol swift friendly.

* [ios] Update changelog.
fabian-guerra added a commit that referenced this pull request Apr 24, 2019
Improved MGLLocationManager protocol bridging to swift.

* [ios] Make MGLLocationManager protocol swift friendly.

* [ios] Update changelog.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS Swift Specific to the Swift/Objective-C bridge on iOS or macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't set activityType on default locationManager
2 participants