             objc_setAssociatedObject(self, _isPlayingKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN);
             
             if newValue {
-                self.delegate?.gifDidStart?()
+                self.delegate?.gifDidStart?(sender: self)
             } else {
-                self.delegate?.gifDidStop?()
+                self.delegate?.gifDidStop?(sender: self)
             }
         }
     }

let _delegateKey = malloc(4)

@objc public protocol SwiftyGifDelegate {
    @objc optional func gifDidStart()
    @objc optional func gifDidLoop()
    @objc optional func gifDidStop()
}

public extension UIImageView {

                    if self.loopCount > 0 {
                        self.loopCount -= 1
                    }
                    self.delegate?.gifDidLoop?(sender: self)
                }
            }
        }
