diff --git a/Sources/QDS/Component/Button/QvickButton.swift b/Sources/QDS/Component/Button/QvickButton.swift index 93ef16c..2f47fd7 100644 --- a/Sources/QDS/Component/Button/QvickButton.swift +++ b/Sources/QDS/Component/Button/QvickButton.swift @@ -9,13 +9,15 @@ import SwiftUI struct QvickButton: View { let action: (() -> ())? + let destination: (() -> AnyView)? let text: String let background: Color - public init(action: (() -> ())? = nil, text: String, background: Color = .blue) { + public init(action: (() -> ())? = nil, destination: (() -> AnyView)? = nil, text: String, background: Color = .blue) { self.text = text self.background = background self.action = action + self.destination = destination } var body: some View {