mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
36 lines
879 B
Swift
36 lines
879 B
Swift
//
|
|
// LedgerBluetoothIssueFooterView.swift
|
|
// Multisig
|
|
//
|
|
// Created by Andrey Scherbovich on 26.11.21.
|
|
// Copyright © 2021 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class LedgerBluetoothIssueFooterView: UITableViewHeaderFooterView, ExternalURLSource {
|
|
@IBOutlet private weak var descriptionLabel: UILabel!
|
|
@IBOutlet private weak var actionLinkLabel: UILabel!
|
|
|
|
private(set) var url: URL?
|
|
|
|
static let estimatedHeight: CGFloat = 100
|
|
|
|
@IBAction func action(_ sender: Any) {
|
|
openExternalURL()
|
|
}
|
|
|
|
override func awakeFromNib() {
|
|
descriptionLabel.setStyle(.body)
|
|
}
|
|
|
|
func set(description: String) {
|
|
descriptionLabel.text = description
|
|
}
|
|
|
|
func set(link: String?, url: URL?) {
|
|
link == nil ? actionLinkLabel.text = nil : actionLinkLabel.hyperLinkLabel(linkText: link!)
|
|
self.url = url
|
|
}
|
|
}
|