Skip to content

Commit 0d7e8d4

Browse files
committed
Explicitly support visionOS
1 parent 60f83ac commit 0d7e8d4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: APNGKit.podspec

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Pod::Spec.new do |s|
2121
s.ios.deployment_target = "12.0"
2222
s.osx.deployment_target = "10.14"
2323
s.tvos.deployment_target = "12.0"
24+
s.visionos.deployment_target = "1.0"
2425

2526
s.source = { :git => "https://github.com/onevcat/APNGKit.git", :tag => s.version }
2627

Diff for: [email protected]

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PackageDescription
33

44
let package = Package(
55
name: "APNGKit",
6-
platforms: [.macOS(.v10_14), .iOS(.v12), .tvOS(.v12)],
6+
platforms: [.macOS(.v10_14), .iOS(.v12), .tvOS(.v12), .visionOS(.v1)],
77
products: [
88
.library(name: "APNGKit", targets: ["APNGKit"])
99
],

Diff for: Tests/APNGKitTests/APNGImageViewTests.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ class ViewControllerStub {
2323
func setupViewController(_ input: UIViewController) -> UIViewController {
2424

2525
input.loadViewIfNeeded()
26-
26+
#if os(visionOS)
27+
window = UIWindow(frame: .init(x: 0, y: 0, width: 800, height: 600))
28+
#else
2729
window = UIWindow(frame: UIScreen.main.bounds)
30+
#endif
2831
window.rootViewController = input
2932
window.makeKeyAndVisible()
3033
return input

0 commit comments

Comments
 (0)