diff --git a/Sources/GaugeKit/GaugeView.swift b/Sources/GaugeKit/GaugeView.swift index 6ddffcb..20662f1 100644 --- a/Sources/GaugeKit/GaugeView.swift +++ b/Sources/GaugeKit/GaugeView.swift @@ -26,6 +26,16 @@ public struct GaugeView : View { public var colors: [Color] public var additionalInfo: GaugeAdditionalInfo? + public init(title: String? = nil, + value: Int? = nil, + colors: [Color], + additionalInfo: GaugeAdditionalInfo? = nil) { + self.title = title + self.value = value + self.colors = colors + self.additionalInfo = additionalInfo + } + public var body: some View { ZStack { ZStack {