From bf191a40c61277155838796ff22d1f7c55652fde Mon Sep 17 00:00:00 2001 From: Aakiyaru Date: Wed, 28 May 2025 14:19:46 +0700 Subject: [PATCH] fd --- Sources/UIKitComponents/CatalogButton.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/UIKitComponents/CatalogButton.swift b/Sources/UIKitComponents/CatalogButton.swift index 1a4a306..561dce7 100644 --- a/Sources/UIKitComponents/CatalogButton.swift +++ b/Sources/UIKitComponents/CatalogButton.swift @@ -12,6 +12,11 @@ public struct CatalogButton: View { let title: String let action: () -> () + public init(title: String, action: @escaping () -> Void) { + self.title = title + self.action = action + } + public var body: some View { CustomMainButtonView(title: title, size: .chips, disactive: true) {action()} }