Add intrinsicContentSize to image view
This commit is contained in:
parent
d9c474d553
commit
d2e34a067d
|
@ -127,4 +127,8 @@ public class AnimatableImageView: UIImageView {
|
|||
func attachDisplayLink() {
|
||||
displayLink.add(to: .main, forMode: RunLoopMode.commonModes)
|
||||
}
|
||||
|
||||
public override var intrinsicContentSize: CGSize {
|
||||
return image?.size ?? CGSize.zero
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>100</string>
|
||||
<string>102</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
|
|
Loading…
Reference in New Issue