From ea2f6c8365f683d57c15f5049fdf0bedd660e0ef Mon Sep 17 00:00:00 2001 From: benedom <> Date: Tue, 27 Feb 2024 09:11:34 +0100 Subject: Update README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4d407f4..e534cd1 100644 --- a/README.md +++ b/README.md @@ -137,13 +137,15 @@ You can also configure `SwiftyCropView` by passing a `SwiftyCropConfiguration`. | `maxMagnificationScale` | `CGFloat`: The maximum scale factor that the image can be magnified while cropping. Defaults to `4.0`. | | `maskRadius` | `CGFloat`: The radius of the mask used for cropping. Defaults to `130`. A good way is to make it dependend on the screens size. | | `cropImageCircular` | `Bool`: When using the cropping mask `circle`, whether the resulting image should also be masked as circle. Defaults to `false`. | +| `rotateImage` | `Bool`: Whether the image can be rotated when cropping using pinch gestures. Defaults to `true`. | Create a configuration like this: ```swift let configuration = SwiftyCropConfiguration( maxMagnificationScale = 4.0, maskRadius: 130, - cropImageCircular: false + cropImageCircular: false, + rotateImage: true ) ``` and use it like this: @@ -166,7 +168,7 @@ and use it like this: All issue reports, feature requests, pull requests and GitHub stars are welcomed and much appreciated. -Thanks to [@leoz](https://github.com/leoz) for adding the circular crop mode and the demo app 🎉 +Thanks to [@leoz](https://github.com/leoz) for adding the circular crop mode, the demo app and the rotation functionality 🎉 ## ✍️ Author -- cgit v1.2.3