Created
December 28, 2020 02:02
-
-
Save hamsternik/acd8bd546896ea757d3b4f19a82fc807 to your computer and use it in GitHub Desktop.
mistake #3 - breaking the SOLID rules
This file contains hidden or 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
final class UserDetailsViewController: UIViewController { | |
// Define the public API ... | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
navigationController?.presentationController?.delegate = self | |
navigationItem.titleView = navigationTitleLabel | |
navigationController?.navigationBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default) | |
navigationController?.navigationBar.shadowImage = UIImage() | |
view.backgroundColor = L360Color.gray1 | |
addDefaultSubviews() | |
setupDefaultConstraints() | |
} | |
} |
Author
hamsternik
commented
Dec 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment