PiXeL16/RevealingSplashView

supportedInterfaceOrientations not supported

Opened this issue · 4 comments

Hi,

RevealingSplashView has some problems if you try to rotate the screen when launching. No one know how to fix it please?

Thanks

Hello,
What sort of problems are you experience when rotating the screen?

This was my problem: http://i.imgur.com/dGjj0N2.png

Patched with:

var loaded = false
override var shouldAutorotate: Bool {
    return loaded
}
override func viewDidLoad() {
    super.viewDidLoad()
    revealingSplashView.startAnimation() {
        DispatchQueue.main.async {
            self.loaded = true
        }
    }
}

Maybe add this snippet into example.

Not sure if I understand the screenshot, but the patch looks good. Can you send a PR?
Thanks!

Done.