init(points:count:interiorPolygons:)
Creates and returns a polygon object from the specified set of map points and interior polygons.
Declaration
convenience init(points: UnsafePointer<MKMapPoint>, count: Int, interiorPolygons: [MKPolygon]?)Parameters
- points:
The array of map points defining the shape. The new object copy the data in this array.
- count:
The number of items in the
pointsarray. - interiorPolygons:
An array of
MKPolygonobjects that define one or more cutout regions for the receiver’s polygon.
Return Value
A new polygon object.