Как добавить пользовательский ярлык на первый элемент UITabbar с помощью Swift - PullRequest
1 голос
/ 26 июня 2019

В моем сценарии мне нужно добавить одну пользовательскую метку в центре первого элемента 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
    }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...