guoyingtao / Mantis

An iOS Image cropping library, which mimics the Photo App written in Swift.
MIT License
907 stars 180 forks source link

fix: use optional CropToolbarProtocol for CropToolbarDelegate #255

Closed guoyingtao closed 1 year ago

guoyingtao commented 1 year ago

Normally if a user want a custom crop tool bar, the tool bar need to delegate operations to CropViewController. For some users who do not want the attached tool bar but still want to use these delegate functions, there is no need to pass a CropToolbarProtocol instance. So I change it to optional