Coder Social home page Coder Social logo

Comments (5)

ruslanskorb avatar ruslanskorb commented on June 12, 2024

@vadim-inmanage What do you mean by manipulate?

from rskimagecropper.

vadim-inmanage avatar vadim-inmanage commented on June 12, 2024

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
Screen Shot 2020-02-13 at 6 11 27

from rskimagecropper.

ruslanskorb avatar ruslanskorb commented on June 12, 2024

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.

vadim-inmanage avatar vadim-inmanage commented on June 12, 2024

Silly me, while making a sample project to upload I realized I wasn't implementing RSKImageCropViewControllerDataSource !
Everything works now, thanks

from rskimagecropper.

ruslanskorb avatar ruslanskorb commented on June 12, 2024

@vadim-inmanage Glad to hear that everything works πŸ‘

from rskimagecropper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.