31 lines
1.1 KiB
Swift
31 lines
1.1 KiB
Swift
//
|
|
// InheritanceViewWaiting.swift
|
|
// Wallet
|
|
//
|
|
// Created by Igor on 15.03.2021.
|
|
// Copyright © 2021 AM. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class InheritanceViewWaiting: CommonViewCustom {
|
|
|
|
@IBOutlet private var shareLabel: UILabel!
|
|
@IBOutlet private weak var accountLbl: UILabel!
|
|
@IBOutlet private weak var dateLbl: UILabel!
|
|
|
|
init(record: Inheritance.Model.Record) {
|
|
super.init(frame: .zero)
|
|
accountLbl.attributedText = record.ownerUsername.attributed(style: .bold, size: 14, color: Asset.textGranite.color)
|
|
// BE format returned without .SSS part "shareDatetime": "2021-08-22T14:31:29"
|
|
dateLbl.attributedText = record.shareDatetime.serverDate()?
|
|
.string(date: .medium, time: .none).attributed(style: .medium, size: 14, color: Asset.textPebble.color)
|
|
shareLabel.attributedText = L10n.Inheritance.shares(record.sharePercent).attributed(style: .bold, size: 14, color: Asset.textGranite.color)
|
|
}
|
|
|
|
required init?(coder aDecoder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
}
|