Pod library is not updated .
herock1 opened this issue · 0 comments
herock1 commented
Using pod i installed this on my project Currently i have run this project on xcode 9 for swift 4.1 and i resolved few issues . but i found that this pod library is not updated as well as example project. Could you please update pod library file . i found this chunk of code is not updated for pod Embeds a new center controller.
- parameter centerViewController: controller to be embedded
- parameter cacheIdentifier: identifier for the view controllers cache
*/
public func embed(centerViewController controller: UIViewController, cacheIdentifier: String? = nil) {
guard controller !== centerViewController else {
if sidePanelVisible {
animate(toReveal: false)
}
return
}
if let id = cacheIdentifier {
controllersCache[id] = controller
}
addChildViewController(controller)
if let controller = controller as? UINavigationController {
prepare(centerControllerForContainment: controller)
}
centerPanel.addSubview(controller.view)
if centerViewController == nil {
centerViewController = controller
centerViewController.didMove(toParentViewController: self)
} else {
centerViewController.willMove(toParentViewController: nil)
let completion: () -> () = {
self.centerViewController.view.removeFromSuperview()
self.centerViewController.removeFromParentViewController()
controller.didMove(toParentViewController: self)
self.centerViewController = controller
}
if let animator = _preferences.animating.transitionAnimator {
animator.performTransition(forView: controller.view, completion: completion)
} else {
completion()
}
if sidePanelVisible {
animate(toReveal: false)
}
}
}
}
thanks . Please update this for pod