-
-
Save cardoso/2fb16f2166197f94357327659e92dab7 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
extension JoinViewController { | |
func setupViews() { | |
setupBuyerButton() | |
setupSellerButton() | |
} | |
private func setupBuyerButton() { | |
buyerButton.translatesAutoresizingMaskIntoConstraints = false | |
buyerButton.setTitleColor(.systemBlue, for: .normal) | |
buyerButton.setTitle("Buyer 🙋", for: .normal) | |
buyerButton.titleLabel?.font = .systemFont(ofSize: 32) | |
view.addSubview(buyerButton) | |
} | |
private func setupSellerButton() { | |
sellerButton.translatesAutoresizingMaskIntoConstraints = false | |
sellerButton.setTitleColor(.systemBlue, for: .normal) | |
sellerButton.setTitle("Seller 🧑💼", for: .normal) | |
sellerButton.titleLabel?.font = .systemFont(ofSize: 32) | |
view.addSubview(sellerButton) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment