takuoka / TKSubmitTransition

Animated UIButton of Loading Animation and Transition Animation. Inspired by https://dribbble.com/shots/1945593-Login-Home-Screen
MIT License
2.28k stars 229 forks source link

TKFadeInAnimator / UITransitionContextViewKey.from nil on iOS13 #61

Closed psuarezglb closed 5 years ago

psuarezglb commented 5 years ago

on the TKFadeInAnimator func animateTransition line 30 let fromView = transitionContext.view(forKey: UITransitionContextViewKey.from)!

I'm getting a nil on the UITransitionContextViewKey.from

running on Xcode 11 / iOS 13

JirkaKrivanek commented 5 years ago

This is my case too... Any chance to fix it or shall we get rid of this dependency?

TheM4hd1 commented 5 years ago

set modalPresentationStyle to .custom and it fixes.

let vc = YourVC()
vc.modalPresentationStyle = .custom
sandeepbol commented 5 years ago

Please use

pod 'TKSubmitTransition', :git => 'https://github.com/entotsu/TKSubmitTransition.git'

for xCode11 and iOS 13 with standard steps. It is working fine.

I am closing this.

v-ken commented 4 years ago

This worked for me:

let vc = YourVC()
vc.modalPresentationStyle = .fullScreen
sandeepbol commented 4 years ago

Thanks @v-ken. Going to post a generic solution that works for all modalPresentationStyle later tonight.