-
-
Save susieyy/a7e9fcf1e90f571bcb81d44715134d62 to your computer and use it in GitHub Desktop.
#swtws
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
// URI /profiles/:id | |
final class ProfileViewController: UIViewController { | |
let userRealm: UserRealm | |
init(userId: Int) { | |
self.userRealm = try! Realm().objectForPrimaryKey(UserRealm.self, key: userId)! | |
super.init(nibName: nil, bundle: nil) | |
} | |
required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment