Closed behrangnm closed 2 years ago
@behrangnm Thanks for the feedback. Could you provide more information like your macOS version and your Xcode version? I did a test but didn't reproduce it on my MacBook Pro (macOS 12.6, Xcode Version 13.3.1 (13E500a))
Thanks for getting back to me quickly. I checked your sample example against my code and I was missing the following in my setup of the cropViewController: cropViewController.modalPresentationStyle = .fullScreen So if you remove that from your test code, you will seeing the bouncing of the crop frame. I guess I had to read the "Basics" of how to set it up in the read.me file :) Anyway, problem solved on my part but maybe it would be a good idea to automatically set the presentation style to fullscreen on ios 13+ / mac catalyst
Just released Mantis 2.3.0 which automatically sets the presentation style to fullscreen on ios 13+ / mac catalyst
I'm having a hard time initiating a cropViewController with a non-default aspect ratio in mac Catalyst. Let's say I initiate my cropViewController with an image and want to show the default crop aspect ratio as 16/9
let cropViewController = Mantis.cropViewController(image: myImage) cropViewController.config.presetFixedRatioType = .alwaysUsingOnePresetFixedRatio(ratio: 16.0/9.0)
When I present the above cropViewController, for a split second the aspect ratio is set to 16/9 but then the crop box expands to cover the full image without me touching anything. This behavior is not present in the iOS app.
Has anyone seen this behavior?