From 3d2294fe52205434a466bf18812779cf234bc052 Mon Sep 17 00:00:00 2001 From: Guille Gonzalez Date: Fri, 9 Jan 2026 16:33:57 +0100 Subject: [PATCH] Make SPI typographicBounds method nonisolated --- Sources/SwiftUIMath/Math.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftUIMath/Math.swift b/Sources/SwiftUIMath/Math.swift index 514b26e..c706f10 100644 --- a/Sources/SwiftUIMath/Math.swift +++ b/Sources/SwiftUIMath/Math.swift @@ -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