-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
I Have started a fresh XCode project and only tried to add package dependency for TOCropViewController and it will allow me to add package (I have also allowed embedded content for CropViewController & TOCropViewController) I then import CropViewController like I have done before with cocoapods but this time i am using package dependency (Cocoapods being phased out) and it then asks to import TOCropviewController in same VC as CropViewController ok thats fine i guess. But now I sample this code in VC cropController.aspectRatioPreset =.presetSquare (same as your example project) and get error (Type 'CGSize' has no member 'presetSquare') now if i manually change dependency Rule to V2.7.4 EVERY error goes away.
To Reproduce
Steps to reproduce the behavior:
- Start fresh project and Add CropViewControllerDependecy
- Click on viewController and add sample code from example project
- Scroll down to cropController.aspectRatioPreset = .presetSquare and uncomment this line it will not work.
- See error - Type 'CGSize' has no member 'presetSquare'
Expected behavior
I shouldn't have to manually downgrade dependency nearly 4 versions
Screenshots
See attached
iOS Device:
- Device: [e.g. iPhone15 Pro]
- OS: [e.g. iOS26.2.1]
- Xcode Version : 26.2
Additional context
This repo has always worked with cocoapods no issues its only with dependency
