blockchainethereumblockchain-walleterc20erc721walletxdaidappdecentralizederc1155erc875iosswifttokens
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
873 B
49 lines
873 B
// Copyright SIX DAY LLC. All rights reserved.
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
struct TokenViewCellViewModel {
|
|
|
|
let token: Token
|
|
|
|
init(token: Token) {
|
|
self.token = token
|
|
}
|
|
|
|
var title: String {
|
|
return token.name
|
|
}
|
|
|
|
var amount: String {
|
|
return token.amount
|
|
}
|
|
|
|
var amountTextColor: UIColor {
|
|
return Colors.black
|
|
}
|
|
|
|
var amountFont: UIFont {
|
|
return UIFont.systemFont(ofSize: 17, weight: UIFontWeightMedium)
|
|
}
|
|
|
|
var subTitle: String {
|
|
return token.symbol
|
|
}
|
|
|
|
var subTitleTextColor: UIColor {
|
|
return Colors.black
|
|
}
|
|
|
|
var subTitleFont: UIFont {
|
|
return UIFont.systemFont(ofSize: 13, weight: UIFontWeightRegular)
|
|
}
|
|
|
|
var backgroundColor: UIColor {
|
|
return .white
|
|
}
|
|
|
|
var image: UIImage? {
|
|
return R.image.ethereumToken()
|
|
}
|
|
}
|
|
|