{"full_name":"TimOliver/TOCropViewController","owner":"TimOliver","name":"TOCropViewController","shard":"1","url":"https://github.com/TimOliver/TOCropViewController","description":"A view controller for iOS that allows users to crop portions of UIImage objects","homepage":"","topics":["cropper","image","image-processing","ios","cocoapods","viewcontroller","crop-image","swift","podfile","crop","cropping","uiimage","view"],"tag_pages":["cocoapods","crop","image","image-processing","ios","swift"],"language":"Objective-C","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/429119?u=98d2e07b76dcb3afdd5786b1e8fa102f2c125f01&v=4","created_at":"2015-06-06T22:53:07Z","pushed_at":"2026-11-08T16:54:38Z","metrics":{"stars":4948,"forks":1028,"watchers":80,"issues":416,"prs":244,"releases":24,"issues_open":86,"issues_closed":330,"prs_open":2,"prs_closed":42,"prs_merged":200,"discussions":4},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[4948,4948,4948,4948,4948,4948,4948],"forks":[1027,1028,1028,1028,1028,1028,1028],"watchers":[null,80,80,80,80,80,80],"issues_open":[null,86,86,86,86,86,86],"prs_open":[null,2,2,2,2,2,2]},"boards":{},"same_owner":[],"issues":[{"number":395,"title":"Mac OS Catalyst Support","comments":12,"created_at":"2019-11-29T22:25:43Z"},{"number":429,"title":"'TOCropViewConstants.h' file not found","comments":11,"created_at":"2020-09-04T13:09:54Z"},{"number":655,"title":"Unable to see Cancel and Done buttons by default in version 3.2.0  ,doneIconButton,cancelIconButton And doneTextButton ,cancelTextButton can not see,I hope the author can fix it as soon as possibleI hope the author can fix it as soon as possible","comments":10,"created_at":"2026-08-05T09:08:14Z"},{"number":477,"title":"Crop View Controller just dismisses on iPad on any toolbar button press","comments":10,"created_at":"2021-02-08T14:19:08Z"},{"number":423,"title":"2.5.3 SPM Won't compile","comments":10,"created_at":"2020-07-17T12:17:43Z"},{"number":46,"title":"Set Cropper Minimum Size","comments":9,"created_at":"2016-01-21T11:28:29Z"},{"number":68,"title":"Question - can i fix the height and width of the required image to 130 x 600?","comments":8,"created_at":"2016-02-26T11:46:07Z"},{"number":421,"title":"SwiftUI example of using TOCropViewController","comments":7,"created_at":"2020-07-14T07:41:14Z"}],"discussions":[{"number":559,"title":"Hello Tim, thanks for the development!","comments":0,"category":"Show and tell","created_at":"2023-09-08T08:03:31Z"},{"number":499,"title":"Adding Aspect ratios","comments":4,"category":"General","created_at":"2021-10-20T10:08:59Z"},{"number":469,"title":"Can you disable cropping, using only the rotate functionality?","comments":0,"category":"Q&A","created_at":"2021-01-11T15:24:09Z"},{"number":452,"title":"Welcome to TOCropViewController Discussions!","comments":4,"category":"General","created_at":"2020-12-09T05:27:08Z"}],"latest_release":{"name":"v3.3.0","tag":"3.3.0","published_at":"2026-11-08T17:04:39Z","body":"\r\n## Added\r\n\r\n- Full support for iPhone Duo, in all rotations and screen states. This is still early days, so any feedback on how or if it can be improved would be appreciated! ([#660](https://github.com/TimOliver/TOCropViewController/pull/660))\r\n- `TOCropToolbar.reverseVerticalContentLayout`, which anchors the Done button to the bottom of a vertical toolbar instead of the top.\r\n- `-[TOCropView performRelayoutForBoundsChange]`, which lays the crop out again after its content bounds have shifted, carrying any crop the user has made across.\r\n\r\n## Fixed\r\n\r\n- On iOS 26, apps built with Xcode 16 (the iOS 18 SDK) showed no Done or Cancel buttons, as the toolbar laid itself out for the Liquid Glass design that the older SDK had compiled out. The glass design is now only used when both the SDK and the device support it. ([#655](https://github.com/TimOliver/TOCropViewController/issues/655))\r\n- On iOS 26, the aspect ratio picker could appear away from its button: offset sideways on iPhone, and in the wrong place entirely on iPad. ([#644](https://github.com/TimOliver/TOCropViewController/issues/644), [#657](https://github.com/TimOliver/TOCropViewController/issues/657))\r\n- On visionOS, the toolbar used `UICornerConfiguration` without checking for visionOS 26, which it requires. ([#658](https://github.com/TimOliver/TOCropViewController/pull/658))\r\n- Dismissing the crop view controller removed the presenting view controller's view when that controller wasn't full screen (such as a sheet, form sheet or popover), or when the crop view controller itself was presented over full screen. ([#661](https://github.com/TimOliver/TOCropViewController/pull/661))\r\n- Clearing `transitioningDelegate` to opt out of the custom transition had no effect, as it was installed again when the view loaded. ([#661](https://github.com/TimOliver/TOCropViewController/pull/661))\r\n- Tapping Done without making any changes, or after resetting, returned an image a few pixels smaller than the original (eg, 4032×3019 for a 4032×3024 photo), and each 90° rotation shaved off more. Crops that reach an edge of the image now include it exactly. ([#662](https://github.com/TimOliver/TOCropViewController/pull/662))\r\n- With a locked aspect ratio, each 90° rotation zoomed further into the image, and rotating without animation (including setting `angle`) left the crop box in the wrong orientation. The crop box now keeps its shape while the image turns underneath it, zooming in only as far as it needs to, and rotating all the way around returns to the original crop. ([#663](https://github.com/TimOliver/TOCropViewController/pull/663))\r\n- Switching between aspect ratio presets could slide the crop towards the image's left or top edge instead of keeping it centred. ([#663](https://github.com/TimOliver/TOCropViewController/pull/663))\r\n- Very wide or tall locked aspect ratios (such as 1920:190) were distorted by the minimum crop box size, especially after rotating. ([#663](https://github.com/TimOliver/TOCropViewController/pull/663))\r\n- With `aspectRatioLockDimensionSwapEnabled` on, rotating after choosing an aspect ratio could jump to a different part of the image. ([#663](https://github.com/TimOliver/TOCropViewController/pull/663))\r\n- At some view sizes, an aspect ratio preset's crop box came out a point narrower than it should, so a square preset didn't produce a square image. ([#664](https://github.com/TimOliver/TOCropViewController/pull/664))\r\n- Crops locked to an aspect ratio could be up to 20 pixels away from that ratio in the final image. They now match it to the nearest pixel. ([#664](https://github.com/TimOliver/TOCropViewController/pull/664))\r\n- Cropping a photo from the camera (or any other wide color image) produced a 16-bit-per-channel image, using twice the memory it needed and crashing share extensions with large photos. Crops are now drawn in the photo's own 8-bit color format, and crops that aren't rotated or circular reuse the photo's pixels without copying them. ([#665](ht","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}