[英]Motion/Material Unbalanced calls to begin/end appearance transitions
I'm using latest version Material library for Swift (2.16.0). 我正在为Swift(2.16.0)使用最新版本的Material库。 And in my project I have NavigationDrawer controller with ToolBarController as root view controller.
在我的项目中,我将NavigationDrawer控制器与ToolBarController用作根视图控制器。 Then I try to present modally SearchBarController, motion animation worked perfectly
然后我尝试以模态形式呈现SearchBarController,运动动画效果完美
let searchController = AppStoryboard.Tree.viewController(viewControllerClass: SearchViewController.self)
let searchBarController = SearchBarController(rootViewController: searchController)
searchBarController.isMotionEnabled = true
searchBarController.motionTransitionType = .autoReverse(presenting: .fade)
toolbarController?.present(searchBarController, animated: true)
But in log I see messages: 但是在日志中,我看到消息:
Unbalanced calls to begin/end appearance transitions for <Material.SearchBarController: 0x7f8db554bde0>.
Unbalanced calls to begin/end appearance transitions for <NavigationDrawerController: 0x7f8db680b000>.
I know, that Motion library have transition(to: <UIViewController>)
method. 我知道,Motion库具有
transition(to: <UIViewController>)
方法。 But this method does not work for me, because it replaces the rootViewController
但是此方法对我不起作用,因为它替换了
rootViewController
这已被固定在CosmicMind /运动#42和释放Motion 1.4.3
它随Material 2.16.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.