Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Pod library is not updated . #151

Open
herock1 opened this issue May 21, 2018 · 0 comments
Open

Pod library is not updated . #151

herock1 opened this issue May 21, 2018 · 0 comments

Comments

@herock1
Copy link

herock1 commented May 21, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant