Skip to content

Commit

Permalink
✨ :: QvickButton에 destination 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh1202 committed Jul 29, 2024
1 parent 51e0b22 commit ec6d359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/QDS/Component/Button/QvickButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ec6d359

Please sign in to comment.