fd
This commit is contained in:
parent
5a8a33aaf5
commit
51c9b98a7a
@ -52,7 +52,10 @@ public struct CustomMainButtonView: View {
|
|||||||
private var buttonColor: Color {
|
private var buttonColor: Color {
|
||||||
if tetriary {
|
if tetriary {
|
||||||
return Color("hex#F5F5F9", bundle: .module)
|
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)
|
return Color("hex#C9D4FB", bundle: .module)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
24
Sources/UIKitComponents/CatalogButton.swift
Normal file
24
Sources/UIKitComponents/CatalogButton.swift
Normal file
@ -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: "Женщинам") {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user