В моем сценарии мне нужно добавить одну пользовательскую метку в центре первого элемента UITabbar, потому что на основе позиции центра метки я собираюсь применить к ней начальную точку перехода по кругу.
Мой код ниже
func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
transition.transitionMode = .present
transition.startingPoint = customLabel.center // here I need to get custom label center position
return transition
}
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
transition.transitionMode = .dismiss
transition.startingPoint = customLabel.center
return transition
}