Slide 16
Slide 16 text
enumͰදݱͨ͠߹ͷྫ
final class SummaryView: UIView {
...
func configure(_ combination: SummaryCombination) {
switch combination {
case let .subTextTopBasic(startAt, title):
titleLabel.text = title
titleLabel.numberOfLines = 2
configureSubTextLabel(text: startAt, position: 0)
additionalView?.removeFromSuperview()
case let .subTextSecondBasic(title, broadcastTime):
...
case let .noSubTextBasic(title):
...
case let .subTextSecondCoin(title, duration, tag, coin):
...
case let .noSubTextCoin(title, coin, expirationTime):
...
case let .subTextTopViewingType(seasonName, title, tag, expirationTime):
...
case let .subTextSecondViewingType(title, broadcastTime, tag, expirationTime):
...
case let .noSubTextViewingType(title, tag, expirationTime):
...
}
}
}