Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created July 2, 2020 02:41
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/3451d021ff63f3c2894a7f1d69d7262d to your computer and use it in GitHub Desktop.
Save cardoso/3451d021ff63f3c2894a7f1d69d7262d to your computer and use it in GitHub Desktop.
import UIKit
extension ClassViewController {
func setupViews() {
setupCallButton()
}
func setupCallButton() {
let button = UIBarButtonItem()
button.image = UIImage(systemName: "phone")
navigationItem.rightBarButtonItem = button
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment