Last active
July 9, 2021 15:01
-
-
Save karthiikmk/987b2f8446fb34f75457721806a5d02e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class InstrumentCell: UITableViewCell { | |
@IBOutlet weak var title: UILabel! | |
@IBOutlet weak var subtitle: UILabel! | |
var instrument: Instrument! | |
override func awakeFromNib() { | |
super.awakeFromNib() | |
} | |
override func setSelected(_ selected: Bool, animated: Bool) { | |
super.setSelected(selected, animated: animated) | |
} | |
func configure() { | |
self.title.text = instrument.name | |
self.subtitle.text = instrument.description | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment