Slide 7
Slide 7 text
How to use ProfileViewController
let user = User(
id: "@akifumifukaya",
name: "akifumi",
profileImageUrl: "https://xxx.jpg",
description: "xxx"
)
let bundle = Bundle(for: ProfileViewController.self)
let storyboard = UIStoryboard(name: "Profile", bundle: bundle)
guard let profileViewController = storyboard.instantiateInitialViewController() as? ProfileViewController else { return }
vc.user = user
let navigationController = UINavigationController(rootViewController: profileViewController)
UIApplication.shared.open(navigationController)
外部から値を代入
7