I was building a child view controllers framework recently and while implementing animations, I stumbled across a…