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

S.O.L.I.D. Principles with Example (Swift & Dart)