Files
2022-06-03 16:55:25 +03:00

29 lines
882 B
Swift

//
// InheritanceViewHeir.swift
// Wallet
//
// Created by Igor on 15.03.2021.
// Copyright © 2021 AM. All rights reserved.
//
import UIKit
class InheritanceViewHeir: CommonViewCustom {
@IBOutlet private weak var imgView: UIImageView!
@IBOutlet private weak var accountLbl: UILabel!
@IBOutlet private weak var shareLbl: UILabel!
init(model: Inheritance.Model.Information.Heir) {
super.init(frame: .zero)
imgView.image = .account(model.inheritor, size: imgView.frame.size)
accountLbl.attributedText = model.inheritor.attributed(style: .bold, size: 14, color: Asset.textCoal.color)
shareLbl.attributedText = model.value.attributed(style: .regular, size: 14, color: Asset.textPebble.color)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}