Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Cheok committed Sep 11, 2023
1 parent 9e9dc59 commit bc4912f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Sources/Public/iOS/BundleImageProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -92,6 +90,7 @@ public class BundleImageProvider: AnimationImageProvider {

let bundle: Bundle
let searchPath: String?
let contentsGravity: CALayerContentsGravity
}

extension BundleImageProvider: Equatable {
Expand Down
3 changes: 1 addition & 2 deletions Sources/Public/iOS/FilepathImageProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:"),
Expand Down Expand Up @@ -63,6 +61,7 @@ public class FilepathImageProvider: AnimationImageProvider {
// MARK: Internal

let filepath: URL
let contentsGravity: CALayerContentsGravity
}

extension FilepathImageProvider: Equatable {
Expand Down

0 comments on commit bc4912f

Please sign in to comment.