MengTo / Spring

A library to simplify iOS animations in Swift.
http://designcode.io
MIT License
14.08k stars 1.8k forks source link

Black screen when transitioning to SpringImageView #111

Open bmurmistro opened 9 years ago

bmurmistro commented 9 years ago

I've connected an IBOutlet to a SpringImageView and applie my animation in viewDidAppear. The transition works, but there is a black background during the transition. Any ideas?

bmurmistro commented 9 years ago

Something must have got jacked when messing with my storyboard.

In AppDeletegate application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool

add this:

window?.layer.backgroundColor = UIColor.whiteColor().CGColor

or whatever color/image you want. Hope this helps someone