25 lines
350 B
Swift
25 lines
350 B
Swift
//
|
|
// Icon.swift
|
|
// MacBackend
|
|
//
|
|
// Created by david-swift on 30.11.2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
/// The icon type.
|
|
public enum Icon {
|
|
|
|
/// A system icon.
|
|
case system(name: String)
|
|
|
|
/// The SwiftUI image.
|
|
var image: Image {
|
|
switch self {
|
|
case let .system(name):
|
|
.init(systemName: name)
|
|
}
|
|
}
|
|
|
|
}
|