Skip to content

Commit

Permalink
fix: different resizeMode behaviours for gif (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyihou authored Sep 12, 2024
1 parent c29ec9e commit 61453fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/TurboImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ fileprivate extension TurboImageView {
if container.type == .gif,
let data = container.data {
let view = GIFImageView()
view.contentMode = ResizeMode(rawValue: self.resizeMode)?.contentMode ?? .scaleToFill
view.animate(withGIFData: data)
return view
}
Expand Down

0 comments on commit 61453fb

Please sign in to comment.