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.
33 lines
655 B
33 lines
655 B
// Copyright © 2018 Stormbird PTE. LTD.
|
|
|
|
import UIKit
|
|
|
|
struct BaseTokenCardTableViewCellViewModel {
|
|
let tokenHolder: TokenHolder
|
|
|
|
init(
|
|
tokenHolder: TokenHolder
|
|
) {
|
|
self.tokenHolder = tokenHolder
|
|
}
|
|
|
|
var backgroundColor: UIColor {
|
|
return Colors.appWhite
|
|
}
|
|
|
|
var status: String {
|
|
return ""
|
|
}
|
|
|
|
var checkboxImage: UIImage {
|
|
if tokenHolder.isSelected {
|
|
return R.image.ticket_bundle_checked()!
|
|
} else {
|
|
return R.image.ticket_bundle_unchecked()!
|
|
}
|
|
}
|
|
|
|
var areDetailsVisible: Bool {
|
|
return tokenHolder.areDetailsVisible
|
|
}
|
|
}
|
|
|