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

48 lines
1.2 KiB

// Copyright SIX DAY LLC. All rights reserved.
import Foundation
import UIKit
struct RequestViewModel {
let account: Account
let config: Config
init(
account: Account,
config: Config
) {
self.account = account
self.config = config
}
var myAddressText: String {
return account.address.address
}
var shareMyAddressText: String {
return String(
format: NSLocalizedString("request.myAddressIs.label.title", value: "My %@ address is: %@", comment: ""),
config.server.name, myAddressText
)
}
var headlineText: String {
return String(
format: NSLocalizedString("request.myPublicaddress.label.title", value: "My Public %@ wallet address", comment: ""),
config.server.name
)
}
var copyWalletText: String {
return NSLocalizedString("request.copyWallet.button.title", value: "Copy wallet address", comment: "")
}
var addressCopiedText: String {
return NSLocalizedString("request.addressCopied.title", value: "Address copied", comment: "")
}
var backgroundColor: UIColor {
return .white
}
}