Skip to content

Commit

Permalink
GIFImageView: add missing call to super (#159)
Browse files Browse the repository at this point in the history
* GIFImageView: add missing call to super (fixes issues w/iOS 14 beta 1)
* Fix crashes for unrecognized selector
* Update GIFImageView.swift
  • Loading branch information
jverdi authored Aug 3, 2020
1 parent 3964369 commit 9b1a646
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Gifu/Classes/GIFImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public class GIFImageView: UIImageView, GIFAnimatable {
///
/// - parameter layer: The delegated layer.
override public func display(_ layer: CALayer) {
if UIImageView.instancesRespond(to: #selector(display(_:))) {
super.display(layer)
}
updateImageIfNeeded()
}
}
Expand Down

0 comments on commit 9b1a646

Please sign in to comment.