From 5676f91bcbb2d421e78fbb3268dfde911dd67947 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sat, 22 Feb 2025 00:55:40 +0100 Subject: [PATCH] Defined the Artifact enumeration in the library target and conformed it to the Randomable protocol. --- .../Sources/Public/Enumerations/Artifact.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Library/Sources/Public/Enumerations/Artifact.swift diff --git a/Library/Sources/Public/Enumerations/Artifact.swift b/Library/Sources/Public/Enumerations/Artifact.swift new file mode 100644 index 0000000..cdffbd2 --- /dev/null +++ b/Library/Sources/Public/Enumerations/Artifact.swift @@ -0,0 +1,16 @@ +public enum Artifact: String { + case executable + case image +} + +// MARK: - Randomable + +extension Artifact: Randomable { + + // MARK: Functions + + static func random() -> Artifact { + .allCases.randomElement() ?? .executable + } + +}