congnd / FMPhotoPicker

A modern, simple and zero-dependency photo picker with an elegant and customizable image editor
MIT License
765 stars 128 forks source link

FMCrop.ratioCustom is available even I put only FMCrop.ratioSquare and forceCropEnabled = true #47

Closed Adakhan closed 4 years ago

Adakhan commented 4 years ago

FMCrop.ratioCustom is available even I put onlyFMCrop.ratioSquare and/or forceCropEnabled = true When I move to Edit image screen, any of FMCrops are not selected and it gives me the opportunity to crop an image as FMCrop.ratioCustom

congnd commented 4 years ago

Which version you are using and how do you config the editor? Can you post your code here?

Adakhan commented 4 years ago

Version 1.1.0

config.forceCropEnabled = true
config.availableCrops = [FMCrop.ratioOrigin, FMCrop.ratioSquare]
config.availableFilters = []
Adakhan commented 4 years ago

my bad, I replaced and now it is works

config.forceCropEnabled = true
config.availableCrops = [FMCrop.ratioSquare]
config.availableFilters = []
congnd commented 4 years ago

Congrats :D