Skip to content

Commit

Permalink
try center
Browse files Browse the repository at this point in the history
  • Loading branch information
ferico55 committed Aug 1, 2021
1 parent 4c0123c commit f262aef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Extensions/ImageView+Kingfisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ extension KingfisherWrapper where Base: KFCrossPlatformImageView {

case .failure:
if let image = options.onFailureImage {
self.base.contentMode = .center
self.base.image = image
self.base.backgroundColor = #colorLiteral(red: 0.9333333333, green: 0.9333333333, blue: 0.9333333333, alpha: 1)
}
Expand Down

0 comments on commit f262aef

Please sign in to comment.