dekatotoro / dekatotoro/SlideMenuControllerSwift

How to go back to the mainviewController with animation. I can do without animation.

Open
#367 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
3.4k
Forks
742
PR merge metrics
No merged PRs in 30d

Description

My code:
func viewDidLoad() {

let Screen = storyboard?.instantiateViewController(withIdentifier: "sampleVC") as! SampleViewController

self.sampleVC = UINavigationController(rootViewController: Screen)
}

@IBAction func close(_ sender: Any) {

// slideMenuController()?.toggleLeft()

self.slideMenuController()?.changeMainViewController(sampleVC, close: true)
}

**While closing the viewcontroller by pressing the back button it has to go the SampleViewController with animation(Like modal view or push view). How can i achieve it ? Please guide.**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.