Added support for visionOS by adding to #if os(iOS) || os(visionOS)

This commit is contained in:
Richard
2025-03-27 11:19:51 +01:00
parent 606f9be66d
commit 1c3bf9129a
6 changed files with 10 additions and 10 deletions

View File

@@ -7,7 +7,7 @@
import Foundation
#if os(iOS)
#if os(iOS) || os(visionOS)
import UIKit
#endif
@@ -86,7 +86,7 @@ extension MTMathImage {
let size = intrinsicContentSize
layoutImage(size: size, displayList: displayList)
#if os(iOS)
#if os(iOS) || os(visionOS)
let renderer = UIGraphicsImageRenderer(size: size)
let image = renderer.image { rendererContext in
rendererContext.cgContext.saveGState()