Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SettingsTableViewLinkCell.swift « Cells « Settings « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c1135acb14209a3f36dc89ee21e0d95e390a0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@objc final class SettingsTableViewLinkCell: MWMTableViewCell {

  static let cellId = "SettingsTableViewLinkCell"

  @IBOutlet fileprivate weak var title: UILabel!
  @IBOutlet fileprivate weak var info: UILabel!

  func config(title: String, info: String?) {
    backgroundColor = UIColor.white()

    self.title.text = title
    styleTitle()

    self.info.text = info
    self.info.isHidden = info == nil
    styleInfo()
  }

  fileprivate func styleTitle() {
    title.textColor = UIColor.blackPrimaryText()
    title.font = UIFont.regular17()
  }

  fileprivate func styleInfo() {
    info.textColor = UIColor.blackSecondaryText()
    info.font = UIFont.regular17()
  }

}