Q:

Crop Image swift ios

I am using CropImg this link to Crop image in swift. All the things are working fine. but I have one silly question. In this CropppableImageView class has delegate named CropDelegate. I have taken one view in my viewController and then I use the "Idenity Inspector" to change the type to CroppableImageView. but I am not able to connect CropDelegate with my viewController.
Can anyone guide me to do this? I know this is very silly question but I am not able to do this.
Thanks.

A:

add like this
class ViewController: UIViewController, CropDelegate

and then set the delegate via
imageView.cropDelegate = self

