guoyingtao / Mantis

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

Allow to select free ratio #253

Closed Karllas closed 1 year ago

Karllas commented 1 year ago

Allow to select free ratio if config.presetFixedRatioType is equal. to.canUseMultiplePresetFixedRatio(defaultRatio: 0)

guoyingtao commented 1 year ago

@Karllas Can you give an example how you want to use didSelectFreeRatio? Will you add another "Free Ratio" button into the toolbar?

Karllas commented 1 year ago

We don't use Mantis' toolbar and there was no way to programmatically set the free ratio so we came up with this solution

guoyingtao commented 1 year ago

@Karllas How do you trigger this didSelectFreeRatio? Does user have to tap a button or a menu item? (If so, would you mind posting a screenshot for it? )

Karllas commented 1 year ago

It's a button on a custom toolbar. It can clicked by the user