2 // BookDetailsInfoTableViewCell.swift
5 // Created by Pawel Dabrowski on 19/06/2018.
6 // Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved.
11 class BookDetailsInfoTableViewCell: WLTableViewCell {
13 @IBOutlet weak var epochTitleLabel: UILabel!
14 @IBOutlet weak var epochDescLabel: UILabel!
15 @IBOutlet weak var kindTitleLabel: UILabel!
16 @IBOutlet weak var kindDescLabel: UILabel!
17 @IBOutlet weak var genreTitleLabel: UILabel!
18 @IBOutlet weak var genreDescLabel: UILabel!
20 class func instance() -> BookDetailsInfoTableViewCell{
21 let cell = BookDetailsInfoTableViewCell.instance(type: BookDetailsInfoTableViewCell.self)
25 override func awakeFromNib() {
27 epochTitleLabel.text = "book_epoch".localized.uppercased()
28 kindTitleLabel.text = "book_kind".localized.uppercased()
29 genreTitleLabel.text = "book_genre".localized.uppercased()
32 func setup(bookModel: BookDetailsModel){
33 epochDescLabel.text = bookModel.getEpochs()
34 kindDescLabel.text = bookModel.getKinds()
35 genreDescLabel.text = bookModel.getGenres()