delegate doesn't make the function flexible . Should I get the callback when the gif is loaded or couldn't be loaded using the escaping closure just like sd_webimage
`
public enum GifEvent {
case didStart
case didLoop
case didStop
case didFinish
case didFail(URL, Error?)
}
public struct GifCallbackData {
public let sender: UIImageView
public let event: GifEvent
}
public typealias GifCallback = (GifCallbackData) -> Void
delegate doesn't make the function flexible . Should I get the callback when the gif is loaded or couldn't be loaded using the escaping closure just like sd_webimage `
public typealias GifCallback = (GifCallbackData) -> Void
`