运动/材质不平衡调用开始/结束外观过渡



我正在使用最新版本的 Swift 材质库 (2.16.0(。在我的项目中,我有导航抽屉控制器和工具栏控制器作为根视图控制器。然后我尝试呈现模式搜索栏控制器,运动动画工作得很好

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)

但是在日志中我看到消息:

Unbalanced calls to begin/end appearance transitions for <Material.SearchBarController: 0x7f8db554bde0>.
Unbalanced calls to begin/end appearance transitions for <NavigationDrawerController: 0x7f8db680b000>.

我知道,Motion 库有transition(to: <UIViewController>)方法。但是这种方法对我不起作用,因为它取代了rootViewController

这已在CosmicMind/Motion #42中修复,并在Motion 1.4.3中发布,Material 2.16.3

相关内容

最新更新