mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
34 lines
798 B
Swift
34 lines
798 B
Swift
//
|
|
// LoadingValueCell.swift
|
|
// Multisig
|
|
//
|
|
// Created by Andrey Scherbovich on 18.11.20.
|
|
// Copyright © 2020 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class LoadingValueCell: UITableViewCell {
|
|
@IBOutlet private weak var titleLable: UILabel!
|
|
@IBOutlet private weak var activityIndicator: UIActivityIndicatorView!
|
|
|
|
static let rowHeight: CGFloat = 60
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
titleLable.setStyle(.headline)
|
|
}
|
|
|
|
func setTitle(_ value: String) {
|
|
activityIndicator.stopAnimating()
|
|
activityIndicator.isHidden = true
|
|
titleLable.text = value
|
|
}
|
|
|
|
func displayLoading() {
|
|
activityIndicator.isHidden = false
|
|
activityIndicator.startAnimating()
|
|
titleLable.text = nil
|
|
}
|
|
}
|