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

Swift 开始/结束外观过渡的运动/材质不平衡调用,swift,cosmicmind,material-swift,Swift,Cosmicmind,Material Swift,我正在使用最新版本的Swift材料库(2.16.0)。在我的项目中,我有NavigationDrawer控制器,其中ToolBarController作为根视图控制器。然后我试着展示一个控制器,运动动画工作得很好 let searchController = AppStoryboard.Tree.viewController(viewControllerClass: SearchViewController.self) let searchBarController = SearchBarCon

我正在使用最新版本的Swift材料库(2.16.0)。在我的项目中,我有NavigationDrawer控制器,其中ToolBarController作为根视图控制器。然后我试着展示一个控制器,运动动画工作得很好

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>.
开始/结束外观转换的调用不平衡。
开始/结束外观转换的调用不平衡。
我知道,那个运动库有
转换(到:)
方法。但是这种方法对我不起作用,因为它取代了
rootViewController

这已经在
Motion 1.4.3
中修复,并在
Material 2.16.3
中发布