Make SPI typographicBounds method nonisolated
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user