All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Image does not invert when 'Smart Invert Colors' is enabled.
- A Core Animation crash when the image size is initially NaN.
- The image being positioned slightly higher than it should be on iPhone X.
- An imprecision issue where the reported cropping frame was out of bounds.
minimumAspectRatio
to set a minimum shape that the cropping box can be scaled to.cropViewPadding
to specifically control how much padding from the edge the crop box gives.cropAdjustingDelay
to specifically control how long the timer waits until animating the crop transition.aspectRatioLockDimensionSwapEnabled
as a stopgap to locking the aspect ratio when rotating the image.
- More thorough sanitation of the final frame calculation.
- A bug where sometimes the square aspect ratio would stop being square.
- A memory cycle leak in the Swift wrapper.
- A broken animation when rotating the device orientation 180 degrees.
- A broken animation if you hit 'reset' right after resizing the crop box.
- Danish and Malaysian localisations weren't being imported properly.
aspectRatioLockDimensionSwapEnabled
to enable or disable the crop view controller aspect ratio dimensions to swap when the aspect ratio is locked.
- Moved all Objective-C code into
CropViewController
framework to avoid needing importingTOCropViewController
framework.
- Size calculation for one of the tool bar buttons was incorrect.
- Optimized toolbar layout code to be more efficient.
- Title label was being clipped by the sensour housing on iPhone X.
- Init methods in
CropViewController
weren't public. - Simplified the handling of making rotation buttons visible and hidden.
- Tool bar icon misalignment error on iOS 10 and below.
- A bug where restoring a previous crop state with a different angle than 0 and then rotating the image would result in a distorted image.
- Fixed a broken animation where restoring from a cropped image would animate higher than it needed on iPhone X.
- A Swift wrapper library named
CropViewController
. - Proper handling for when swiping near the Control Center and Notification Center edges on iOS 11.
- An animation distortion that occurred when restoring from a previous crop view frame.
- A crash that occurred when restoring to a rotated image.
- A bug where rotating images on iPhone X in landscape would result in images incorrectly being positioned.
- Support for iPhone X.
- Fixed missing semicolons in iOS 7 code brace.
- Fixed minor issue with certain
nullable
properties being marked asnonnull
. - Made the clockwise rotation button visible by default.
- Broken rotation animations in iOS 11.
- Incorrect inset of crop content when status bar is visible.
- General cleanup of the codebase
- Added a CHANGELOG. (Yay!)
TOCropViewController.title
property will display a title label above the crop view box.- Added more thorough checks to ensure both all delegate and completion block handlers execute in the right order.
- Fixed scroll view insets to work properly with new iOS 11 assumptions.
- Fixed crop box frame resizing to properly clamp when it touches an outer boundary.