我正在尝试使用Segue在导航控制器中更改过渡动画以从下到上加载新的UIView控制器。我相信实施起来不会太难,但也许我听不懂。
我的第一次尝试是使用Hero库,但由于某些原因它无法正常工作。
到目前为止找到的答案仅在Objective-C中
您可以尝试此解决方案以模态显示您的新控制器。
let storyboard = UIStoryboard(name: "Storyboard Name", bundle: nil)
let controller = storyboard.instantiateViewController(withIdentifier: "Controller Name
")
self.present(controller, animated: true, completion: nil)