Building Better Views (Part I)
['Joe Fabisevich']
Fabisevi.ch
public final class CommentView : UIView { let titleLabel = UILabel ( ) let subtitleLabel = UILabel ( ) let statusLabel = UILabel ( ) let replyButton = UIButton ( type : . protocol CommentViewData { var title : String { get } var subtitle : String { get } var timestamp : String { get } var replyText : String { get } var avatarURL : URL ? text } var replyText : String { return NSLocalizedString ( "Reply" , comment : "Text for replying to a comment" ) } var replyImage : UIImage ?