Skip to content

Commit

Permalink
Fix compilation on watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 23, 2021
1 parent cc72cbf commit aede017
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Core/Processing/ImageProcessors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ extension ImageProcessing where Self == ImageProcessors.RoundedCorners {
}
}

#if os(iOS) || os(tvOS) || os(macOS)

extension ImageProcessing where Self == ImageProcessors.CoreImageFilter {
/// Applies Core Image filter (`CIFilter`) to the image.
///
Expand All @@ -100,6 +102,8 @@ extension ImageProcessing where Self == ImageProcessors.GaussianBlur {
}
}

#endif

extension ImageProcessing where Self == ImageProcessors.Anonymous {
/// Processed an image using a specified closure.
public static func process(id: String, _ closure: @escaping (PlatformImage) -> PlatformImage?) -> ImageProcessors.Anonymous {
Expand Down

0 comments on commit aede017

Please sign in to comment.