Files
suixinkan_uikit/suixinkan/Features/Home/Services/HomeMenuIconFactory.swift

22 lines
683 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// HomeMenuIconFactory.swift
// suixinkan
//
import UIKit
/// / SF Symbol
enum HomeMenuIconFactory {
/// 2426pt
static let symbolConfiguration = UIImage.SymbolConfiguration(pointSize: 18, weight: .medium)
/// Assets SF Symbol
static func image(named iconName: String) -> UIImage? {
if let asset = UIImage(named: iconName) {
return asset
}
return UIImage(systemName: iconName, withConfiguration: symbolConfiguration)
}
}