Comments (5)
If I understood you correctly, you are looking for a way to configure the bounces
and bouncesZoom
properties of RSKImageScrollView
. By setting them to NO
, it is possible to achieve the effect you want.
At the moment RSKImageCropper has no such functionality. But it is possible to add new properties bounces
andbouncesZoom
to RSKImageCropViewController
, similar to the properties alwaysBounceHorizontal
and alwaysBounceVertical
.
viewController.avoidEmptySpaceAroundImage = YES;
viewController.bounces = NO;
viewController.bouncesZoom = NO;
If you get the chance to do this and open the PR, I'll be happy to add these changes to RSKImageCropper.
from rskimagecropper.
Hi thanks for the quick response. I noticed that property but it seems like it only prevents the mask from exceeding the image boundary after the user stops dragging the mask. If the user taps the submit button while the mask is still being dragged, it's possible for there to be empty space still as far as I can tell -- let me know if that's not the case.
from rskimagecropper.
Hi @matthewjsloane,
Thank you for the question!
You probably need the avoidEmptySpaceAroundImage
property of RSKImageCropViewController
. It determines whether the image will always fill the mask space. Default value is NO
.
from rskimagecropper.
not yet?
from rskimagecropper.
I did like this.
#242
from rskimagecropper.
Related Issues (20)
- 'Use of undeclared identifier '__tg_promote1'' error in Objective-C++ project HOT 22
- How can we draw and extract a part of image? HOT 2
- cropImage layout was wrong when use RSKImageCropModeCustom HOT 17
- App crash for Live Photos on iOS HOT 1
- Resize the image smaller within the crop area HOT 1
- Issue in zoom out HOT 3
- How can one manipulate maskLayerColor in Swift? HOT 5
- 可以开放 缩放的最小比例的api吗 HOT 3
- What is the point of method swizzling UIApplication.shared? HOT 1
- Support for SPM HOT 2
- Localisation is not working HOT 2
- The position of the photo to be cropped does not change. HOT 2
- Warning when include RSKImageCropper in SPM HOT 2
- Circlemask center, width etc. + Cancel button completion boolean? HOT 1
- Small and fix size cropping HOT 4
- Able to push select button when dragging HOT 1
- RSKImageCropper HOT 3
- Warning related to UI-related operation on a background thread HOT 2
- Privacy manifest required by Apple HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rskimagecropper.