Fix: animationGroup.beginTime should be small enough so that loading animation can be performed fluently. In some case when presented viewcontroller and then dismiss it, you may find the loading animation is delayed