Skip to content

Commit

Permalink
Wrap extension in targetEnvironment check. Fixes #360
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGorman committed Nov 24, 2023
1 parent f29c930 commit 41af8d4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Agrume.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Agrume"
s.version = "5.8.7"
s.version = "5.8.8"
s.summary = "An iOS image viewer written in Swift."
s.swift_version = "5.0"

Expand Down
2 changes: 2 additions & 0 deletions Agrume/AgrumeCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,11 @@ extension AgrumeCell: UIScrollViewDelegate {
}
}

#if !targetEnvironment(macCatalyst)
@available(iOS 16.0, *)
extension AgrumeCell: ImageAnalysisInteractionDelegate {
func presentingViewController(for interaction: ImageAnalysisInteraction) -> UIViewController? {
delegate?.presentingController
}
}
#endif
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/kirualex/SwiftyGif",
"state": {
"branch": null,
"revision": "4d851de4cdecb6c5453c8d529c3578dd49086408",
"version": "5.2.0"
"revision": "d6d26061d6553a493781ad3df4a8e275c43fc373",
"version": "5.4.4"
}
}
]
Expand Down
15 changes: 11 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ import PackageDescription
let package = Package(
name: "Agrume",
platforms: [
.iOS(.v13)
.iOS(.v13),
],
products: [
.library(name: "Agrume", targets: ["Agrume"])
.library(
name: "Agrume",
targets: ["Agrume"]
),
],
dependencies: [
.package(url: "https://github.com/kirualex/SwiftyGif", .upToNextMajor(from: "5.0.0"))
.package(url: "https://github.com/kirualex/SwiftyGif", .upToNextMajor(from: "5.4.0"))
],
targets: [
.target(name: "Agrume", dependencies: ["SwiftyGif"], path: "./Agrume")
.target(
name: "Agrume",
dependencies: ["SwiftyGif"],
path: "./Agrume"
)
]
)

0 comments on commit 41af8d4

Please sign in to comment.