summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLPolyline.h
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-10-17 21:29:04 -0700
committerGitHub <noreply@github.com>2016-10-17 21:29:04 -0700
commit87885008a670739addcc633202c93fc0b7d28684 (patch)
tree01ebf29dedd1ec1e900a3e7c25029aa2fec9e163 /platform/darwin/src/MGLPolyline.h
parentd10c1714d56096873372e257edbed1c1e95fb5ae (diff)
downloadqtlocation-mapboxgl-87885008a670739addcc633202c93fc0b7d28684.tar.gz
[ios, macos] Use swift_name for MGLMultiPoint and subclasses (#6727)
Decorate the class factory methods so that when they are translated to swift the method to create an MGLMultiPoint is not ambiguous with the methods to create MGLPolygon and MGLPolyline.
Diffstat (limited to 'platform/darwin/src/MGLPolyline.h')
-rw-r--r--platform/darwin/src/MGLPolyline.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLPolyline.h b/platform/darwin/src/MGLPolyline.h
index 78d9649751..6642afef7e 100644
--- a/platform/darwin/src/MGLPolyline.h
+++ b/platform/darwin/src/MGLPolyline.h
@@ -25,8 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
@param count The number of items in the `coords` array.
@return A new polyline object.
*/
-+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords
- count:(NSUInteger)count;
++ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count NS_SWIFT_NAME(polyline(coordinates:count:));
@end