Skip to content

Commit 2ffce65

Browse files
fix: compile for VisionOS
1 parent c45e0fd commit 2ffce65

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
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: 4 additions & 3 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
@@ -7,7 +7,8 @@ let package = Package(
77
name: "LaTeXSwiftUI",
88
platforms: [
99
.iOS(.v15),
10-
.macOS(.v12)
10+
.macOS(.v12),
11+
.visionOS(.v1)
1112
],
1213
products: [
1314
.library(
@@ -16,7 +17,7 @@ let package = Package(
1617
],
1718
dependencies: [
1819
.package(url: "https://github.com/colinc86/MathJaxSwift", from: "3.4.0"),
19-
.package(url: "https://github.com/swhitty/SwiftDraw", from: "0.20.1"),
20+
.package(url: "https://github.com/swhitty/SwiftDraw", from: "0.22.0"),
2021
.package(url: "https://github.com/Kitura/swift-html-entities", from: "4.0.1")
2122
],
2223
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)