diff --git a/Sources/Beet/Beets/Enums.swift b/Sources/Beet/Beets/Enums.swift index 76d31fb..bb309b9 100644 --- a/Sources/Beet/Beets/Enums.swift +++ b/Sources/Beet/Beets/Enums.swift @@ -255,7 +255,8 @@ public func mirrored(value: Any) -> (label: String, params: [String: Any]) { return ("\(value)", dictionary) } - if reflection.displayStyle == .enum, let associated = reflection.children.first { + if reflection.displayStyle == .enum || reflection.displayStyle == .optional, + let associated = reflection.children.first { let values = Mirror(reflecting: associated.value).children var valuesArray = [String: Any]() if values.count > 0 {