Skip to content

Commit

Permalink
Make StyleImage non-experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
persidskiy committed Dec 12, 2024
1 parent d274862 commit b7b66c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
Mapbox welcomes participation and contributions from everyone.

## main
* Localize geofencing attribution dialog.
* Remove experimental SPI from `StyleImage`.

## 11.9.0-beta.1

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

## 11.9.0-beta.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- ``StyleDecodable``
- ``StyleEncodable``
- ``StyleError``
- ``StyleImage``
- ``TypeConversionError``
- ``LightInfo``
- ``LightType``
Expand Down
3 changes: 1 addition & 2 deletions Sources/MapboxMaps/Style/Types/StyleImage.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import UIKit

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

Expand Down Expand Up @@ -36,7 +35,7 @@ extension StyleImage: MapStyleContent, PrimitiveMapContent {

extension StyleImage {
/// Initialize a StyleImage from an existing UIImage
init?(named name: String, sdf: Bool = false, contentInsets: UIEdgeInsets = .zero) {
public init?(named name: String, sdf: Bool = false, contentInsets: UIEdgeInsets = .zero) {
guard let image = UIImage(named: name) else { return nil }
self.init(id: name, image: image, sdf: sdf, contentInsets: contentInsets)
}
Expand Down

0 comments on commit b7b66c1

Please sign in to comment.