aboutsummaryrefslogblamecommitdiff
path: root/foray/Extensions/UIImage+Extensions.swift
blob: 252c3fbc59271d30a5032346d7c8cc1d2d25e1b8 (plain) (tree)




















                                                                
//
//  UIImage+Extensions.swift
//  foray
//
//  Created by Nicholas Tay on 17/7/2022.
//

import UIKit

extension UIImage {
    static func fromAsset(_ assetImage: AssetImage) -> UIImage {
        return UIImage(named: assetImage.rawValue)!
    }
}

/// Known asset images that we can safely unwrap
enum AssetImage: String {
    case AppIcon
    case it
    case spy
}