fix
This commit is contained in:
parent
7a4584544b
commit
d28f4b0817
42
Sources/UIKitComponents/Buttons/ButtonPassword.swift
Normal file
42
Sources/UIKitComponents/Buttons/ButtonPassword.swift
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
//
|
||||||
|
// SwiftUIView.swift
|
||||||
|
// UIKitComponents
|
||||||
|
//
|
||||||
|
// Created by User on 27.05.2025.
|
||||||
|
//
|
||||||
|
|
||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
public struct ButtonPassword: View {
|
||||||
|
|
||||||
|
let title: String
|
||||||
|
let action: () -> ()
|
||||||
|
|
||||||
|
public init(title: String, action: @escaping () -> Void) {
|
||||||
|
self.title = title
|
||||||
|
self.action = action
|
||||||
|
}
|
||||||
|
|
||||||
|
public var body: some View {
|
||||||
|
Button {
|
||||||
|
action()
|
||||||
|
} label: {
|
||||||
|
Text(title)
|
||||||
|
.frame(width: 80, height: 80)
|
||||||
|
.clipped()
|
||||||
|
.background(Color("hex#F5F5F9", bundle: .module))
|
||||||
|
.cornerRadius(40)
|
||||||
|
.robotoFlex(size: 24, font: .semibold)
|
||||||
|
.tracking(0.33)
|
||||||
|
.lineSpacing(28)
|
||||||
|
.foregroundStyle(Color.black)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Preview {
|
||||||
|
ButtonPassword(title: "1") {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user