mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
28 lines
565 B
Swift
28 lines
565 B
Swift
//
|
|
// GuardianCountTableViewCell.swift
|
|
// Multisig
|
|
//
|
|
// Created by Vitaly on 28.07.22.
|
|
// Copyright © 2022 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class GuardianCountTableViewCell: UITableViewCell {
|
|
|
|
@IBOutlet weak var countLabel: UILabel!
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
countLabel.setStyle(.body)
|
|
}
|
|
|
|
func setCount(_ count: Int) {
|
|
if count > 1 {
|
|
countLabel.text = "\(count) delegates"
|
|
} else {
|
|
countLabel.text = "\(count) delegate"
|
|
}
|
|
}
|
|
}
|