aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBen <31181527+benedom@users.noreply.github.com>2024-05-11 23:13:22 +0200
committerGitHub <noreply@github.com>2024-05-11 23:13:22 +0200
commit4d9d6a2f3d1fbe9802e1c523be3d86c52cd20660 (patch)
tree0394a4093903a15392186e31a696a22fafe0f1b6 /README.md
parentc959eb9e5cbc8c396af2831ec31295c97c16e6a2 (diff)
parentee15f67f8b759328f2f30cd0774110363563ce28 (diff)
Merge pull request #11 from benedom/feature/add-zoom-sensitivity-to-configuration
Added zoom sensitivity to configuration
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index a15102c..167e588 100644
--- a/README.md
+++ b/README.md
@@ -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: