diff options
author | benedom <31181527+benedom@users.noreply.github.com> | 2024-05-10 12:22:35 +0200 |
---|---|---|
committer | benedom <31181527+benedom@users.noreply.github.com> | 2024-05-10 12:22:35 +0200 |
commit | ee15f67f8b759328f2f30cd0774110363563ce28 (patch) | |
tree | 0394a4093903a15392186e31a696a22fafe0f1b6 /README.md | |
parent | c959eb9e5cbc8c396af2831ec31295c97c16e6a2 (diff) |
Added zoom sensitivity to configuration
Also decreased default sensitivity when zooming
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -144,6 +144,7 @@ You can also configure `SwiftyCropView` by passing a `SwiftyCropConfiguration`. | `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`. | +| `zoomSensitivity` | `CGFloat`: Zoom sensitivity when cropping. Increase to make zoom faster / less sensitive. Defaults to `1.0`. | Create a configuration like this: ```swift @@ -151,7 +152,8 @@ let configuration = SwiftyCropConfiguration( maxMagnificationScale = 4.0, maskRadius: 130, cropImageCircular: false, - rotateImage: true + rotateImage: true, + zoomSensitivity = 1.0 ) ``` and use it like this: |