From ec6d359b0ee638ebffe22eed2f3855382d294287 Mon Sep 17 00:00:00 2001 From: lsh1202 Date: Mon, 29 Jul 2024 10:24:57 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20::=20QvickButton=EC=97=90=20destin?= =?UTF-8?q?ation=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/QDS/Component/Button/QvickButton.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {