Skip to content

Commit b7b66c1

Browse files
committed
Make StyleImage non-experimental
1 parent d274862 commit b7b66c1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
Mapbox welcomes participation and contributions from everyone.
44

55
## main
6+
* Localize geofencing attribution dialog.
7+
* Remove experimental SPI from `StyleImage`.
8+
9+
## 11.9.0-beta.1
610

711
* Add a new API to disable custom resizing implementation of the MapView. To disable the custom resizing implementation, set `MapView.resizingAnimation` to `.none`.
812
* Add `to-hsla` expression support.
9-
* Localize geofencing attribution dialog.
1013

1114
## 11.9.0-beta.1
1215

Sources/MapboxMaps/Documentation.docc/API Catalogs/Style.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- ``StyleDecodable``
1616
- ``StyleEncodable``
1717
- ``StyleError``
18+
- ``StyleImage``
1819
- ``TypeConversionError``
1920
- ``LightInfo``
2021
- ``LightType``

Sources/MapboxMaps/Style/Types/StyleImage.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import UIKit
22

3-
@_spi(Experimental)
43
/// An image to be used in the Style
54
public struct StyleImage: Equatable, Sendable {
65

@@ -36,7 +35,7 @@ extension StyleImage: MapStyleContent, PrimitiveMapContent {
3635

3736
extension StyleImage {
3837
/// Initialize a StyleImage from an existing UIImage
39-
init?(named name: String, sdf: Bool = false, contentInsets: UIEdgeInsets = .zero) {
38+
public init?(named name: String, sdf: Bool = false, contentInsets: UIEdgeInsets = .zero) {
4039
guard let image = UIImage(named: name) else { return nil }
4140
self.init(id: name, image: image, sdf: sdf, contentInsets: contentInsets)
4241
}

0 commit comments

Comments
 (0)