// // ProfileHeader.swift // MyProject // // Created by Zhao Yanjun on 2021/6/15. // import UIKit class ProfileHeader: UITableViewCell { @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var nameLabel: UILabel! func configure(with user: User) { imageView.image = user.avatar nameLabel.text = user.name } }