mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
31 lines
746 B
Swift
31 lines
746 B
Swift
//
|
|
// SecondaryDetailDisclosureCell.swift
|
|
// Multisig
|
|
//
|
|
// Created by Dmitry Bespalov on 11.01.22.
|
|
// Copyright © 2022 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class SecondaryDetailDisclosureCell: UITableViewCell {
|
|
|
|
@IBOutlet weak var cellLabel: UILabel!
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
cellLabel.setStyle(.headline)
|
|
backgroundView = UIView()
|
|
setBackgroundColor(.backgroundPrimary)
|
|
}
|
|
|
|
func setText(_ value: String?, hideDisclousre: Bool = false) {
|
|
cellLabel.text = value
|
|
accessoryType = hideDisclousre ? .none : .disclosureIndicator
|
|
}
|
|
|
|
func setBackgroundColor(_ color: UIColor?) {
|
|
backgroundView?.backgroundColor = color
|
|
}
|
|
}
|