Make SPI typographicBounds method nonisolated

This commit is contained in:
Guille Gonzalez
2026-01-09 16:33:57 +01:00
parent 2c44010554
commit 3d2294fe52

View File

@@ -62,7 +62,8 @@ extension Math {
}
@_spi(Textual)
public func typographicBounds(
public static nonisolated func typographicBounds(
for latex: String,
fitting proposal: ProposedViewSize,
font: Font,
style: TypesettingStyle
@@ -73,7 +74,7 @@ extension Math {
return DisplayProvider.shared
.display(
for: self.latex,
for: latex,
font: font,
style: style,
proposedWidth: proposal.width ?? 0