Instructions icon indicating copy to clipboard operation
Instructions copied to clipboard

Animation question - Animate the transparency of the overlay

Open ergunkocak opened this issue 8 years ago • 4 comments

Hello,

First of all thanks for such useful library 👍

Is it possible to animate background transparent layer as in :

https://raw.githubusercontent.com/wooplr/Spotlight/master/art/intro.gif?token=AA5ZAHdvAspW6Zj8YyyKamkV7jWXFtMHks5XaQovwA%3D%3D

Best Regards

ergunkocak avatar Jun 06 '17 09:06 ergunkocak

Thanks @ergunkocak, you're welcome!

Sadly, not yet. Custom animations of the overlay and the coach marks are not supported, but it's on the roadmap.

ephread avatar Jun 06 '17 11:06 ephread

Hi! What about just a simple Fade animation for the overlay? Currently it just appears. I saw the animation delegates for the coachmarks themselves, but not for the overlay

Thanks!

jlubeck avatar Mar 20 '20 08:03 jlubeck

@jlubeck the overlay should fade in as it appears. If it just appears, then something went wrong somewhere.

ephread avatar Mar 20 '20 08:03 ephread

@ephread that's strange. I'm just doing a standard setup

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated);
            self.coachMarksController.overlay.color = UIColor.black.withAlphaComponent(0.2)
            self.coachMarksController.dataSource = self
            self.coachMarksController.delegate = self
            self.coachMarksController.start(in: .window(over: self))
    }

I'm on the simulator though, hanve't tried on physical device yet. Could that be why?

jlubeck avatar Mar 20 '20 13:03 jlubeck

Closing because this enhancement is unlikely to be implemented at this point.

ephread avatar May 03 '23 20:05 ephread