简体   繁体   English

运动/材质不平衡调用以开始/结束外观转换

[英]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.

相关问题 呼叫开始/结束状态转换的不平衡呼叫<ViewController> - Unbalanced calls to begin/end appearance transitions for <ViewController> Swift Unbalanced 调用开始/结束外观过渡 - Swift Unbalanced calls to begin/end appearance transitions for 使用自定义segue对开始/结束外观转换的不平衡调用 - Unbalanced calls to begin/end appearance transitions with custom segue 自定义过渡给出了“不平衡的调用以开始/结束外观过渡”错误 - Custom Transition gives “Unbalanced calls to begin/end appearance transitions” Error 使用分段控制开始/结束外观过渡的不平衡调用 - Unbalanced calls to begin/end appearance transitions with segmented control 尝试呈现视图控制器时对开始/结束外观转换的不平衡调用 - Unbalanced calls to begin/end appearance transitions when try to present viewcontroller 呼叫开始/结束状态转换的不平衡呼叫 <UITableView> 在iPad人像中 - Unbalanced calls to begin/end appearance transitions for <UITableView> in iPad portrait 警告:对QLRemotePreviewContentController的开始/结束外观转换的不平衡调用 - Warning: Unbalanced calls to begin/end appearance transitions for QLRemotePreviewContentController 使用情节提要和自适应序列的不平衡呼叫开始/结束外观转换 - Unbalanced calls to begin/end appearance transitions with storyboard and adaptive segues 容器视图控制器-开始/结束外观转换的不平衡调用 - Container View Controller - Unbalanced calls to begin/end appearance transitions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM