---
title: "github.com/mapbox/turf-swift 3.0.0 Breaking Changes"
description: "What each github.com/mapbox/turf-swift release removed, renamed or changed: 19 breaking changes in 5 versions on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/mapbox/turf-swift
last_updated: 2026-12-04
---

# github.com/mapbox/turf-swift breaking changes

github.com/mapbox/turf-swift 3.0.0 (August 27, 2024) is its newest release with breaking changes, 3 of them. The first: Removed RawRepresentable. Every breaking API change we have recorded in github.com/mapbox/turf-swift on Swift Package Index: 19 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.1.0`, released October 13, 2026. [Source repository](https://github.com/mapbox/turf-swift)

- From [1.0.0](#v-1-0-0) to [3.0.0](#v-3-0-0): 3 breaking changes in 1 version.
- From [0.1.0](#v-0-1-0) to [3.0.0](#v-3-0-0): 18 breaking changes in 4 versions.

## github.com/mapbox/turf-swift 3.0.0 breaking changes

github.com/mapbox/turf-swift 3.0.0, released August 27, 2024: 3 breaking changes.

- **Removed** `RawRepresentable`  

The public RawRepresentable conformance for Array and Dictionary is removed. Use init(turfRawValue:) instead of init(rawValue:), and turfRawValue instead of rawValue. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v3.0.0)
- **Renamed** `init`  

Code calling init(rawValue:) on the affected types must switch to init(turfRawValue:). [github.com](https://github.com/mapbox/turf-swift/releases/tag/v3.0.0)
- **Renamed** `rawValue`  

Code reading rawValue on the affected types must switch to turfRawValue. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v3.0.0)

## github.com/mapbox/turf-swift 1.0.0 breaking changes

github.com/mapbox/turf-swift 1.0.0: 3 breaking changes.

- **Renamed** `GeoJSON.decodedFeatueCollection`  

GeoJSON.decodedFeatueCollection was renamed to GeoJSON.decodedFeatureCollection. Update calls to use the corrected spelling. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v1.0.0)
- **Renamed** `Turf.intersection`  

The Turf.intersection(\_:\_:) function was renamed to intersection(\_:\_:). Update calls to use the new name. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v1.0.0)
- **Configuration changed**  

Turf now requires iOS 10.0 or above, macOS 10.12.0 or above, tvOS 10.0 or above, or watchOS 3.0 or above to run. Apps targeting older OS versions must raise their deployment target. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v1.0.0)

## github.com/mapbox/turf-swift 0.5.0 breaking changes

github.com/mapbox/turf-swift 0.5.0: 2 breaking changes.

- **Behavior changed** `BoundingBox`  

BoundingBox stores its properties differently to follow GeoJSON RFC7946, so code that reads those values may get different results. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.5.0)
- **Behavior changed** `LineString.closesCoordinate`  

The IndexedCoordinate returned by LineString.closesCoordinate(to:) now has the correct distance value, so code relying on the old distance may get different results. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.5.0)

## github.com/mapbox/turf-swift 0.4.0 breaking changes

github.com/mapbox/turf-swift 0.4.0: 10 breaking changes.

- **Removed** `AnyJSONType`  

Use \[String: Any?\], which conforms to Codable, instead of AnyJSONType. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Removed** `CLLocationCoordinate2D`  

CLLocationCoordinate2D no longer conforms to Codable, so encode coordinates with your own precision. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Removed** `FeatureVariant`  

Use a single Feature instance and set its geometry property instead. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Removed** `JSONType`  

Use \[String: Any?\], which conforms to Codable, instead of the JSONType protocol. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Removed** `LineStringFeature`  

Create a Feature instance and set its geometry property to a LineString instance instead. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Removed** `PointFeature`  

Create a Feature instance and set its geometry property to a Point instance instead. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Removed** `Polyline`  

Use LineString instead of the removed Polyline type alias. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Behavior changed** `Polygon.contains`  

The ignoreBoundary argument previously behaved opposite to its meaning; code that relied on the old inverted behavior will get different results. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Configuration changed**  

The package was migrated to Swift 5, so projects must build with Swift 5 to use this release. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)
- **Signature changed** `Geometry`  

Geometry is now an enumeration with an associated value for each geometry type, so code that used the struct must be updated. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.4.0)

## github.com/mapbox/turf-swift 0.1.0 breaking changes

github.com/mapbox/turf-swift 0.1.0: 1 breaking change.

- **Renamed** `CLLocationDirection.differenceBetween`  

CLLocationDirection.differenceBetween(\_:) was renamed to CLLocationDirection.difference(from:). Update calls to use the new name. [github.com](https://github.com/mapbox/turf-swift/releases/tag/v0.1.0)

## Related packages

- [Turf](https://since.dev/packages/cocoapods/Turf.md):  on CocoaPods
- [github.com/mapbox/mapbox-core-maps-ios](https://since.dev/packages/swift/github.com/mapbox/mapbox-core-maps-ios.md)
- [github.com/mapbox/mapbox-maps-ios](https://since.dev/packages/swift/github.com/mapbox/mapbox-maps-ios.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
