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