How to navigate one screen to other screen in Swift 4

Navigate

        let screenTwo = self.storyboard?.instantiateViewController(withIdentifier: "ScreenTwo") as! ScreenTwo

        self.navigationController?.pushViewController(screenTwo, animated: true)

And back screen


self.navigationController?.popViewController(animated: true)

Comments

Popular posts from this blog

Windows Keys

Important extensions while create a new App in swift

How to Create SceneDelegate object in swift 5 Xcode 11*