Skip to content

Instantly share code, notes, and snippets.

@KanshuYokoo
Created September 2, 2018 12:51
Show Gist options
  • Save KanshuYokoo/8c4e13aaa849be8754c97b7ba88330a3 to your computer and use it in GitHub Desktop.
Save KanshuYokoo/8c4e13aaa849be8754c97b7ba88330a3 to your computer and use it in GitHub Desktop.
ios swift; how to change view by code. *UI operations must be performed on the main thread's queue.
DispatchQueue.main.async() {
[unowned self] in
self.performSegue(withIdentifier: "toSecond", sender: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment