You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
func delayForImageAtIndex line 74:
if delayObject.doubleValue == 0 {
delayObject = unsafeBitCast(CFDictionaryGetValue(gifProperties,
unsafeAddressOf(kCGImagePropertyGIFDelayTime)), AnyObject.self)
}
will cause the issues when there is only single frame
i'am newbie to swift, i add this code to fixed the issues. but i don't know whether this is a good way or not.
if count == 1 {
return UIImage(CGImage: CGImageSourceCreateImageAtIndex(source, 0, nil)!)
}
The text was updated successfully, but these errors were encountered:
func delayForImageAtIndex line 74:
if delayObject.doubleValue == 0 {
delayObject = unsafeBitCast(CFDictionaryGetValue(gifProperties,
unsafeAddressOf(kCGImagePropertyGIFDelayTime)), AnyObject.self)
}
will cause the issues when there is only single frame
i'am newbie to swift, i add this code to fixed the issues. but i don't know whether this is a good way or not.
if count == 1 {
return UIImage(CGImage: CGImageSourceCreateImageAtIndex(source, 0, nil)!)
}
The text was updated successfully, but these errors were encountered: