Repository navigation
v11.0.0-rc.2
Pre-release
Pre-release
·
1382 commits
to main
since this release
Changes
Breaking changes ⚠️
Note: SwiftUI support is an experimental feature, its API may be changed until it stabilizes.
- [SwiftUI] Fixed point annotations clustering.
- [SwiftUI] Viewport inset system was refactored:
- The
Viewport.inset(...)function was removed in favor of theViewport.padding(...) - The
Viewport.inset(...)previously had anignoringSafeAreaparameter which allowed developers to specify if an edge safe area inset should be accounted for in padding calculation. Starting with this version, instead of this parameter there is aMap.usesSafeAreaInsetsAsPadding(_:)modifier that enables or disables this for all edges.
- The
Features ✨ and improvements 🏁
- Introduced
Slotstruct with static properties to manage adding layers to pre-specified slots in a style import. See documentation here. - [SwiftUI] Introduced a new
Map.additionalSafeAreaInsets(...)modifier that adds additional global safe area insets for the map. Use them to display any UI elements on top of the map. The additional safe area will automatically be accounted for in the camera padding calculation in every Viewport. - Added
allowOverlapWithPuckandignoreCameraPaddingoptions toViewAnnotationandMapViewAnnotation.
Bug fixes 🐞
- [SwiftUI] Fixed a bug when
Viewport.inset(...)didn't use safe area insets on the first load. - [SwiftUI] Fixed a map basic coordinator clinging to the first subscriptions.
Dependencies
- Update MapboxCommon to
24.0.0-rc.3. - Update MapboxCoreMaps to
11.0.0-rc.2:
Changelog
Features ✨ and improvements 🏁
- Added
allowOverlapWithPuckandignoreMapPaddingflags toViewAnnotationOptions. - The SDK now avoids placing view annotations on overlapped line geometries if the current bound layer is below other annotated line layers.
Bug fixes 🐞
- Fixed flickering and wrong positions for elevated symbols.
- Updating a style layer's source will now trigger repaint.
- Fixed issue where model loading might have failed when the model used a 32-bit index buffer.
- Fixed rendering of the updated content on the map after a feature state change if terrain or globe were enabled.
- Fixed issue where view annotations would disappear on the upper parts of the screen when terrain was enabled.
- The SDK now triggers view annotation replacement if the associated layer/source gets changed.
- Fixed a bug where snapshot is rendered without 3D content.
Dependency requirements:
- Compatible version of Xcode:
14.1.0