supportedInterfaceOrientations not supported
Opened this issue · 4 comments
Deleted user commented
Hi,
RevealingSplashView has some problems if you try to rotate the screen when launching. No one know how to fix it please?
Thanks
PiXeL16 commented
Hello,
What sort of problems are you experience when rotating the screen?
Deleted user commented
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.
PiXeL16 commented
Not sure if I understand the screenshot, but the patch looks good. Can you send a PR
?
Thanks!
Deleted user commented
Done.