From bc4912f884a988742841a577e6865c336bc84a5c Mon Sep 17 00:00:00 2001 From: Matthew Cheok Date: Mon, 11 Sep 2023 16:31:56 -0300 Subject: [PATCH] Address comments --- Sources/Public/iOS/BundleImageProvider.swift | 3 +-- Sources/Public/iOS/FilepathImageProvider.swift | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/Public/iOS/BundleImageProvider.swift b/Sources/Public/iOS/BundleImageProvider.swift index f27ed7495f..25b57cb704 100644 --- a/Sources/Public/iOS/BundleImageProvider.swift +++ b/Sources/Public/iOS/BundleImageProvider.swift @@ -32,8 +32,6 @@ public class BundleImageProvider: AnimationImageProvider { // MARK: Public - public var contentsGravity: CALayerContentsGravity - public func imageForAsset(asset: ImageAsset) -> CGImage? { if let data = Data(imageAsset: asset), @@ -92,6 +90,7 @@ public class BundleImageProvider: AnimationImageProvider { let bundle: Bundle let searchPath: String? + let contentsGravity: CALayerContentsGravity } extension BundleImageProvider: Equatable { diff --git a/Sources/Public/iOS/FilepathImageProvider.swift b/Sources/Public/iOS/FilepathImageProvider.swift index 910d6753d9..c996f520b3 100644 --- a/Sources/Public/iOS/FilepathImageProvider.swift +++ b/Sources/Public/iOS/FilepathImageProvider.swift @@ -30,8 +30,6 @@ public class FilepathImageProvider: AnimationImageProvider { // MARK: Public - public var contentsGravity: CALayerContentsGravity - public func imageForAsset(asset: ImageAsset) -> CGImage? { if asset.name.hasPrefix("data:"), @@ -63,6 +61,7 @@ public class FilepathImageProvider: AnimationImageProvider { // MARK: Internal let filepath: URL + let contentsGravity: CALayerContentsGravity } extension FilepathImageProvider: Equatable {