Created
May 21, 2020 21:03
-
-
Save cardoso/618d72d45319996efbdbd2ea867231e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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