mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-14 22:45:54 +03:00
27 lines
846 B
Swift
27 lines
846 B
Swift
// Copyright © 2021 Tokenary. All rights reserved.
|
|
|
|
import UIKit
|
|
import WalletCore
|
|
|
|
struct Images {
|
|
|
|
static var noData: UIImage { systemName("wind") }
|
|
static var failedToLoad: UIImage { systemName("xmark.octagon") }
|
|
static var preferences: UIImage { systemName("gearshape") }
|
|
static var circleFill: UIImage { systemName("circle.fill") }
|
|
static var chevronDown: UIImage { systemName("chevron.down") }
|
|
|
|
static func logo(coin: CoinType) -> UIImage {
|
|
return named("Logo" + coin.name)
|
|
}
|
|
|
|
private static func named(_ name: String) -> UIImage {
|
|
return UIImage(named: name)!
|
|
}
|
|
|
|
private static func systemName(_ systemName: String, configuration: UIImage.Configuration? = nil) -> UIImage {
|
|
return UIImage(systemName: systemName, withConfiguration: configuration)!
|
|
}
|
|
|
|
}
|