tokenary/Tokenary iOS/Content/Images.swift

27 lines
846 B
Swift
Raw Normal View History

2021-12-10 21:24:11 +03:00
// Copyright © 2021 Tokenary. All rights reserved.
import UIKit
2022-05-08 03:00:36 +03:00
import WalletCore
2021-12-10 21:24:11 +03:00
struct Images {
static var noData: UIImage { systemName("wind") }
static var failedToLoad: UIImage { systemName("xmark.octagon") }
static var preferences: UIImage { systemName("gearshape") }
2021-12-13 16:27:23 +03:00
static var circleFill: UIImage { systemName("circle.fill") }
2022-05-09 01:05:40 +03:00
static var chevronDown: UIImage { systemName("chevron.down") }
2021-12-10 21:24:11 +03:00
2022-05-07 23:03:59 +03:00
static func logo(coin: CoinType) -> UIImage {
return named("Logo" + coin.name)
}
2021-12-10 21:24:11 +03:00
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)!
}
}