Skip to content

Commit

Permalink
Update RefdsAlert.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelesantos committed Apr 9, 2024
1 parent b54e69d commit a0c99f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Sources/RefdsShared/Alert/RefdsAlert.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import Foundation
import SwiftUI

public protocol RefdsAlert {
public protocol RefdsAlert: Equatable {
var id: UUID { get }
var icon: (() -> any View)? { get }
var title: String? { get }
var message: String? { get }
}

public extension RefdsAlert {
var id: UUID { .init() }
var icon: (() -> any View)? { nil }
}

0 comments on commit a0c99f6

Please sign in to comment.