Skip to content

Commit

Permalink
fix build visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
noppefoxwolf committed Dec 3, 2024
1 parent fbbb05e commit 478ce9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import PackageDescription

let package = Package(
name: "AnimatedImage",
platforms: [.iOS(.v16)],
platforms: [
.iOS(.v16),
.visionOS(.v1)
],
products: [
.library(
name: "AnimatedImage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open class AnimatableCGImageView: CGImageView {

public override init(frame: CGRect) {
super.init(frame: frame)
if #available(iOS 18.0, *) {
if #available(iOS 18.0, visionOS 2.0, *) {
updateLink = UIUpdateLink(view: self)
} else {
updateLink = BackportUpdateLink(view: self)
Expand Down

0 comments on commit 478ce9a

Please sign in to comment.