bindEvent is call when the view is init:
class ShazamResultCard: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setUpSubViews()
layoutUI()
bindEvent()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private func setUpSubViews() {
//........
}
private func layoutUI() {
//........
}
private func bindEvent() {
//........
}
}
Topic:
Media Technologies
SubTopic:
Audio
Tags: