summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/BasicTableViewCell.swift
blob: fd506d309deffb59357ba54e54e27560e2347073 (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
30
31
32
//
//  BasicTableViewCell.swift
//  MullvadVPN
//
//  Created by pronebird on 02/05/2019.
//  Copyright © 2019 Mullvad VPN AB. All rights reserved.
//

import UIKit

class BasicTableViewCell: UITableViewCell {

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)

        let backgroundView = UIView()
        backgroundView.backgroundColor = UIColor.Cell.backgroundColor

        let selectedBackgroundView = UIView()
        selectedBackgroundView.backgroundColor = UIColor.Cell.selectedBackgroundColor

        self.backgroundView = backgroundView
        self.selectedBackgroundView = selectedBackgroundView
        backgroundColor = UIColor.clear
        contentView.backgroundColor = UIColor.clear
    }

    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}