32 lines
767 B
Swift
32 lines
767 B
Swift
//
|
|
// InheritanceViewReady.swift
|
|
// Wallet
|
|
//
|
|
// Created by Igor on 15.03.2021.
|
|
// Copyright © 2021 AM. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class InheritanceViewReady: CommonViewCustom {
|
|
|
|
@IBOutlet private weak var accountLbl: UILabel!
|
|
|
|
private let execute: () -> Void
|
|
|
|
init(record: Inheritance.Model.Record, execute: @escaping () -> Void) {
|
|
self.execute = execute
|
|
super.init(frame: .zero)
|
|
accountLbl.attributedText = record.ownerUsername.attributed(style: .bold, size: 14, color: Asset.textGranite.color)
|
|
}
|
|
|
|
required init?(coder aDecoder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
@IBAction func onExecute(_: AnyObject?) {
|
|
execute()
|
|
}
|
|
|
|
}
|