Skip to content

Commit

Permalink
Add visionOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
agg23 authored and kaishin committed Jun 23, 2024
1 parent 7abb6bb commit 639e40d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Sources/Gifu/Classes/AnimatedFrame.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import UIKit
/// Represents a single frame in a GIF.
struct AnimatedFrame {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Classes/Animator.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import UIKit

/// Responsible for parsing GIF data and decoding the individual frames.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Classes/FrameStore.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import ImageIO
import UIKit

Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Classes/GIFAnimatable.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import Foundation
import UIKit

Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Classes/GIFImageView.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import UIKit
/// Example class that conforms to `GIFAnimatable`. Uses default values for the animator frame buffer count and resize behavior. You can either use it directly in your code or use it as a blueprint for your own subclass.
public class GIFImageView: UIImageView, GIFAnimatable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Extensions/CGSize.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import Foundation
import UIKit
extension CGSize {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Extensions/UIImage.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import UIKit
/// A `UIImage` extension that makes it easier to resize the image and inspect its size.
extension UIImage {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Extensions/UIImageView.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
/// Makes `UIImageView` conform to `ImageContainer`
import UIKit
extension UIImageView: ImageContainer {}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Gifu/Helpers/ImageSourceHelpers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
import ImageIO
import MobileCoreServices
import UIKit
Expand Down

0 comments on commit 639e40d

Please sign in to comment.