Load incomplete content, show errors
This commit is contained in:
23
CHDataManagement/Views/Generation/IssueStatus.swift
Normal file
23
CHDataManagement/Views/Generation/IssueStatus.swift
Normal file
@ -0,0 +1,23 @@
|
||||
import SFSafeSymbols
|
||||
import SwiftUICore
|
||||
|
||||
enum IssueStatus {
|
||||
case nominal
|
||||
case warning
|
||||
case error
|
||||
|
||||
var symbol: SFSymbol {
|
||||
switch self {
|
||||
case .nominal: .checkmarkCircleFill
|
||||
case .warning, .error: .exclamationmarkTriangle
|
||||
}
|
||||
}
|
||||
|
||||
var color: Color {
|
||||
switch self {
|
||||
case .nominal: .green
|
||||
case .warning: .yellow
|
||||
case .error: .red
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user