Skip to content

Commit 4618218

Browse files
committed
Additional canImport UIKit
1 parent 058eb1c commit 4618218

10 files changed

+20
-7
lines changed

Sources/SlideshowGallery/ActivityIndicator.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
// Created by Jerwin Metromart on 11/27/24.
66
//
77

8+
#if canImport(UIKit)
89
import UIKit
10+
#endif
911

1012
@MainActor
1113
public protocol ActivityIndicatorView {

Sources/SlideshowGallery/Extensions/UIImage+AspectFit.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//
55
// Created by Jerwin Metromart on 11/28/24.
66
//
7-
7+
#if canImport(UIKit)
88
import UIKit
9+
#endif
910

1011
extension UIImage {
1112

Sources/SlideshowGallery/Extensions/UIImageView+Tools.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//
55
// Created by Jerwin Metromart on 11/28/24.
66
//
7-
7+
#if canImport(UIKit)
88
import UIKit
9+
#endif
910

1011
extension UIImageView {
1112

Sources/SlideshowGallery/FullScreenSlideshowViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//
55
// Created by Jerwin Metromart on 11/27/24.
66
//
7-
7+
#if canImport(UIKit)
88
import UIKit
9+
#endif
910

1011
@objcMembers
1112
open class FullScreenSlideshowViewController: UIViewController {

Sources/SlideshowGallery/InputSource.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
// Created by Jerwin Metromart on 11/27/24.
66
//
77

8+
#if canImport(UIKit)
89
import UIKit
10+
#endif
911

1012
@MainActor
1113
@objc public protocol InputSource {

Sources/SlideshowGallery/PageIndicator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//
55
// Created by Jerwin Metromart on 11/27/24.
66
//
7-
7+
#if canImport(UIKit)
88
import UIKit
9+
#endif
910

1011
@MainActor
1112
public protocol PageIndicatorView: AnyObject {

Sources/SlideshowGallery/PageIndicatorPosition.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//
55
// Created by Jerwin Metromart on 11/27/24.
66
//
7-
7+
#if canImport(UIKit)
88
import UIKit
9+
#endif
910

1011
public struct PageIndicatorPosition {
1112
public enum Horizontal {

Sources/SlideshowGallery/SlideshowGallery.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
#if canImport(UIKit)
12
import UIKit
3+
#endif
24

35
@objc
46
public protocol SlideshowGalleryDelegate: AnyObject {

Sources/SlideshowGallery/SlideshowGalleryItem.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//
55
// Created by Jerwin Metromart on 11/27/24.
66
//
7-
7+
#if canImport(UIKit)
88
import UIKit
9+
#endif
910

1011
open class SlideshowGalleryItem: UIScrollView, UIScrollViewDelegate {
1112

Sources/SlideshowGallery/ZoomAnimatedTransitioning.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//
55
// Created by Jerwin Metromart on 11/27/24.
66
//
7-
7+
#if canImport(UIKit)
88
import UIKit
9+
#endif
910

1011
class ZoomAnimatedTransitioningDelegate: NSObject, UIViewControllerTransitioningDelegate {
1112
open var referenceImageView: UIImageView?

0 commit comments

Comments
 (0)