Skip to content

Instantly share code, notes, and snippets.

@susieyy
Created January 14, 2017 02:45
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 susieyy/4718b98cd988c14779c92c03f4b3782d to your computer and use it in GitHub Desktop.
Save susieyy/4718b98cd988c14779c92c03f4b3782d to your computer and use it in GitHub Desktop.
#swtws
// 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() {
super.viewDidLoad()
title = profileDisplayType.title
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment