Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// URI /profiles/:id OR /mine
final class ProfileViewController: UIViewController {
let userRealm: UserRealm
let profileDisplayType: ProfileDisplayType
init(profileDisplayType: ProfileDisplayType) {
self.profileDisplayType = ProfileDisplayType
self.userRealm = profileDisplayType.userRealm
super.init(nibName: nil, bundle: nil)
required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") }
override func viewDidLoad() {
title = profileDisplayType.title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.