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