-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MKPolyline.coordinates and MKPolyline(coordinates:) #416
Conversation
Generated by 🚫 Danger |
// Copyright © 2018 SwifterSwift | ||
// | ||
|
||
import MapKit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we'll have to wrap these extensions in #if os(iOS) || os(macOS)
. We support every platform and it seems to be unsupported on watchOS
and tvOS < 9.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add a new subspec to the # MapKit Extensions
s.subspec 'MapKit' do |sp|
sp.source_files = 'Sources/Extensions/MapKit/*.swift'
end |
5900411
to
8dbcafe
Compare
Codecov Report
@@ Coverage Diff @@
## master #416 +/- ##
==========================================
+ Coverage 91.01% 91.05% +0.03%
==========================================
Files 56 57 +1
Lines 2627 2638 +11
==========================================
+ Hits 2391 2402 +11
Misses 236 236
Continue to review full report at Codecov.
|
@SD10 Should be good to go now 👍 It's strange to me I need to define a build time rule for watchOS given the fact it's not part of that target but oh well 🤷♂️ |
8dbcafe
to
cb54069
Compare
💚 |
Yeah, to be honest, I completely forgot how we set up all the schemes to support all 4 platforms so I'm unsure as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution ❤️
Thank you for contributing to SwifterSwift! I've invited you to join the SwifterSwift GitHub organization - no pressure to accept! If you'd like more information on what that means, check out our contributing guidelines. Feel free to reach out if you have any questions! 😃 |
This PR adds the following two additions:
A
.coordinate
property on an instance ofMKPolyline
, to return a list of coordinates from a providedMKPolyline
.A
init(coordinates:)
initializer, to initialize a newMKPolyline
from a provided list of coordinates.