Skip to content

Commit 72f004d

Browse files
fix: compile for VisionOS
1 parent c45e0fd commit 72f004d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.7
1+
// swift-tools-version: 5.8
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -16,7 +16,7 @@ let package = Package(
1616
],
1717
dependencies: [
1818
.package(url: "https://github.com/colinc86/MathJaxSwift", from: "3.4.0"),
19-
.package(url: "https://github.com/swhitty/SwiftDraw", from: "0.20.1"),
19+
.package(url: "https://github.com/swhitty/SwiftDraw", from: "0.22.0"),
2020
.package(url: "https://github.com/Kitura/swift-html-entities", from: "4.0.1")
2121
],
2222
targets: [

Sources/LaTeXSwiftUI/Previews/LaTeX_Previews+Fonts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import SwiftUI
2727

28-
#if os(iOS)
28+
#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) || os(watchOS) || os(visionOS)
2929
import UIKit
3030
typealias PlatformFont = UIFont
3131
#else

0 commit comments

Comments
 (0)