diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-10-17 21:29:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 21:29:04 -0700 |
commit | 87885008a670739addcc633202c93fc0b7d28684 (patch) | |
tree | 01ebf29dedd1ec1e900a3e7c25029aa2fec9e163 /platform/darwin/src/MGLPolygon.h | |
parent | d10c1714d56096873372e257edbed1c1e95fb5ae (diff) | |
download | qtlocation-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/MGLPolygon.h')
-rw-r--r-- | platform/darwin/src/MGLPolygon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLPolygon.h b/platform/darwin/src/MGLPolygon.h index 3d5b36abb6..6d53356ba4 100644 --- a/platform/darwin/src/MGLPolygon.h +++ b/platform/darwin/src/MGLPolygon.h @@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN @param count The number of items in the `coords` array. @return A new polygon object. */ -+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count; ++ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count NS_SWIFT_NAME(polygon(coordinates:count:)); /** Creates and returns an `MGLPolygon` object from the specified set of |