Comments (5)
@vadim-inmanage What do you mean by manipulate?
from rskimagecropper.
Thanks for the quick response!
I am trying to change the partly opaque dark layer (with the opaque circle inn the middle) to white opaque layer
From what I understand, I should change the maskLayerColor to achieve this? though changing it from my view controller after initializing the RSKImageCropViewController:
let image = info[.originalImage] as? UIImage let imgCropper = RSKImageCropViewController(image: image) imgCropper.maskLayerColor = UIColor.white navigationController?.pushViewController(imgCropper, animated: true)
Not working, also changing it directly in the SDK ( in RSKImageCropViewController file ) doesn't work.
I'm attaching a screenshot of what I am trying to achieve,
Thanks in advance
from rskimagecropper.
imageCropViewController.maskLayerColor = UIColor(white: 1.0, alpha: 0.5)
should work.
@vadim-inmanage Could you provide a sample project that reproduces your problem?
from rskimagecropper.
Silly me, while making a sample project to upload I realized I wasn't implementing RSKImageCropViewControllerDataSource !
Everything works now, thanks
from rskimagecropper.
@vadim-inmanage Glad to hear that everything works π
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
- ε―δ»₯εΌζΎ ηΌ©ζΎηζε°ζ―δΎη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
- Prevent user from cropping a photo with edges outside of the image boundary HOT 5
- 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.