J'ai deux UIViews présentés dans le même UINavigationController; Voir A & Voir B.Obtenir le pourcentage de transition dans UINavigationController
Pendant la transition, parce que je veux appliquer des styles d'animation personnalisés, je veux connaître le pourcentage de progression de la présentation dans UINavigationController. Comment puis-je faire cela?
Je veux une fonction comme ceci:
class ExampleNavigationController: UINavigationController {
func viewControllerMoves(from: UIViewController, to: UIViewController, progress: CGFloat) {
//I can read here how far the animation is and apply custom animation styles
}
}
Cette fonction devrait également être appelée au cours d'une mise à jour par l'utilisateur: Exemple ->http://www.latet.nl/appvideo.mov
Comment puis-je faire?
Exemples d'écrans
Pourcentage serait 0,50
Pourcentage serait 1,00
Pourcentage serait 0,00