rahuliyer95 / iShowcase

Highlight the best parts of your application
MIT License
65 stars 25 forks source link

Cleanup Old Showcase Views #9

Closed Gerst20051 closed 7 years ago

Gerst20051 commented 7 years ago

Can you provide a way to remove old views or automatically remove them? Basically, a way to manage the views and disable the gesture recognizers.

Gerst20051 commented 7 years ago

Actually, I just realized that you could do this. Closing this issue as I just realized that iShowcase() returns a UIView...

showcase.isUserInteractionEnabled = false

Gerst20051 commented 7 years ago

It turns out it would be nice for you to add the ability to disable layoutSubviews. Currently I need to extend your class to do this...

class iiShowcase : iShowcase {

    var shouldLayoutSubviews = true

    open override func layoutSubviews() {
        if shouldLayoutSubviews {
            super.layoutSubviews()
        }
    }

}