diff --git a/Sources/Vexil/Observability/FlagWigwag.swift b/Sources/Vexil/Observability/FlagWigwag.swift index 0683cb7c..137e0adb 100644 --- a/Sources/Vexil/Observability/FlagWigwag.swift +++ b/Sources/Vexil/Observability/FlagWigwag.swift @@ -39,6 +39,11 @@ public struct FlagWigwag: Sendable where Output: FlagValue { /// The default value for this flag public let defaultValue: Output + /// The current resolved value of this flag + public var value: Output { + lookup.value(for: keyPath) ?? defaultValue + } + /// A human readable name for the flag. Only visible in flag editors like Vexillographer. public let name: String