An advanced Ethereum/EVM mobile wallet
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.
 
 
 
alpha-wallet-ios/Trust/Transfer/ViewModels/RequestViewModel.swift

24 lines
471 B

// Copyright SIX DAY LLC. All rights reserved.
import Foundation
import UIKit
struct RequestViewModel {
let transferType: TransferType
init(transferType: TransferType) {
self.transferType = transferType
}
var title: String {
switch transferType {
case .ether: return "Request ETH"
case .token(let token): return "Request \(token.name)"
}
}
var backgroundColor: UIColor {
return .white
}
}