diff --git a/Sources/UIKitComponents/Buttons/CustomMainButtonView.swift b/Sources/UIKitComponents/Buttons/CustomMainButtonView.swift index 5db6c29..c182d94 100644 --- a/Sources/UIKitComponents/Buttons/CustomMainButtonView.swift +++ b/Sources/UIKitComponents/Buttons/CustomMainButtonView.swift @@ -52,7 +52,10 @@ public struct CustomMainButtonView: View { private var buttonColor: Color { if tetriary { return Color("hex#F5F5F9", bundle: .module) - } else if disactive { + } else if disactive && size == .chips { + return Color("hex#F5F5F9", bundle: .module) + } + else if disactive { return Color("hex#C9D4FB", bundle: .module) } else { diff --git a/Sources/UIKitComponents/CatalogButton.swift b/Sources/UIKitComponents/CatalogButton.swift new file mode 100644 index 0000000..1a4a306 --- /dev/null +++ b/Sources/UIKitComponents/CatalogButton.swift @@ -0,0 +1,24 @@ +// +// SwiftUIView.swift +// UIKitComponents +// +// Created by User on 28.05.2025. +// + +import SwiftUI + +public struct CatalogButton: View { + + let title: String + let action: () -> () + + public var body: some View { + CustomMainButtonView(title: title, size: .chips, disactive: true) {action()} + } +} + +#Preview { + CatalogButton(title: "Женщинам") { + + } +}