Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created May 21, 2020 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cardoso/618d72d45319996efbdbd2ea867231e0 to your computer and use it in GitHub Desktop.
Save cardoso/618d72d45319996efbdbd2ea867231e0 to your computer and use it in GitHub Desktop.
import Foundation
extension JoinViewController {
func setupHandlers() {
joinButton.addTarget(self, action: #selector(handleButtonPress), for: .touchUpInside)
}
@objc func handleButtonPress() {
let watchVC = WatchViewController()
watchVC.channelName = channelTextField.text!
navigationController?.pushViewController(watchVC, animated: true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment