Skip to content

Commit a414196

Browse files
authored
Added VisionOS support (#12)
* Update Package.swift * Added tvOS * Update Package.swift * Update Package.swift
1 parent 4baf357 commit a414196

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.5
1+
// swift-tools-version:5.9
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: "Markdown",
88
platforms: [
99
.iOS(.v14),
10-
.macOS(.v11)
10+
.macOS(.v11),
11+
.visionOS(.v1),
1112
],
1213
products: [
1314
// Products define the executables and libraries a package produces, and make them visible to other packages.

Sources/Markdown/Markdown.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import WebKit
44
#if os(OSX)
55
import AppKit
66
public typealias ViewRepresentable = NSViewRepresentable
7-
#elseif os(iOS)
7+
#else
88
import UIKit
99
public typealias ViewRepresentable = UIViewRepresentable
1010
#endif

Sources/Markdown/MarkdownWebView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import WebKit
1010
#if os(OSX)
1111
import AppKit
1212
public typealias CustomView = NSView
13-
#elseif os(iOS)
13+
#else
1414
import UIKit
1515
public typealias CustomView = UIView
1616
#endif

0 commit comments

Comments
 (0)