TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.67k stars 929 forks source link

Getting deprecation warnings when compiling for iOS 16. #555

Closed ashish-naik closed 3 months ago

ashish-naik commented 11 months ago

Hi,

i am getting deprecation warnings when compiling for iOS 16.

getting these warnings

Pods/CropViewController/Objective-C/TOCropViewController/TOCropViewController.m:87:14 'automaticallyAdjustsScrollViewInsets' is deprecated: first deprecated in iOS 11.0 - Use UIScrollView's contentInsetAdjustmentBehavior instead
Pods/CropViewController/Objective-C/TOCropViewController/TOCropViewController.m:1299:36 'topLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor

iOS Device:

mackworth commented 8 months ago

See pull request #542 and #543 for fixes

TimOliver commented 3 months ago

Thanks for the help folks! I've merged all the pull requests so this should be resolved now! 🎉