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