Skip to content

Commit 163a4ff

Browse files
authored
Add color theme changelog entry (#2440)
1 parent b11e288 commit 163a4ff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ Mapbox welcomes participation and contributions from everyone.
44

55
## 11.10.0-rc.1 - 31 January, 2025
66

7+
* Expose experimental ColorTheme API to set style wide color theme. A color theme modifies the global colors of a style using a LUT (lookup table) for color grading.
8+
Pass the image either as a base64-encoded string or as UIImage:
9+
```swift
10+
let mapView = MapView()
11+
mapView.mapboxMap.setMapStyleContent {
12+
ColorTheme(base64: "base64EncodedImage") // or use an uiimage shortcut ColorTheme(uiimage: lutImage)
13+
}
14+
```
15+
Note: Each style can have only one `ColorTheme`. Setting a new theme overwrites the previous one. Further details can be fouund in documentation for `ColorTheme`
716
* Promote `ClipLayer.clipLayerTypes` and `ClipLayer.clipLayerScope` to stable.
817
* Remove experimental `DirectionalLight.shadowQuality`.
918
* Add experimental `ViewAnnotationManager.viewAnnotationAvoidLayers` for specifying layers that view annotations should avoid. The API currently only supports line layers.

0 commit comments

Comments
 (0)