diff --git a/Sources/UIKitComponents/ButtonForVKAndYandex/ButtonWKWEB.swift b/Sources/UIKitComponents/ButtonForVKAndYandex/ButtonWKWEB.swift new file mode 100644 index 0000000..45a5f0c --- /dev/null +++ b/Sources/UIKitComponents/ButtonForVKAndYandex/ButtonWKWEB.swift @@ -0,0 +1,39 @@ +// +// SwiftUIView.swift +// UIKitComponents +// +// Created by User on 27.05.2025. +// + +import SwiftUI + +struct ButtonWKWEB: View { + let title: String + let vk: Bool + + var body: some View { + Button { + // + } label: { + HStack(spacing: 0){ + Image(vk ? "VK" : "Yandex", bundle: .module) + .padding(.trailing, 16) + Text("Войти с VK") + .tracking(0) + .lineSpacing(24) + .foregroundStyle(Color.black) + .robotoFlex(size: 17, font: .medium) + }.frame(maxWidth: .infinity) + .frame(height: 60) + .overlay { + RoundedRectangle(cornerRadius: 12) + .stroke(lineWidth: 1) + .foregroundStyle(Color("hex#EBEBEB", bundle: .module)) + } + } + } +} + +#Preview { + ButtonWKWEB(title: "Djnqb", vk: false) +} diff --git a/Sources/UIKitComponents/Media.xcassets/VK.imageset/Contents.json b/Sources/UIKitComponents/Media.xcassets/VK.imageset/Contents.json new file mode 100644 index 0000000..613b87c --- /dev/null +++ b/Sources/UIKitComponents/Media.xcassets/VK.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "VKH4 logo.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/UIKitComponents/Media.xcassets/VK.imageset/VKH4 logo.pdf b/Sources/UIKitComponents/Media.xcassets/VK.imageset/VKH4 logo.pdf new file mode 100644 index 0000000..5cc4c2f Binary files /dev/null and b/Sources/UIKitComponents/Media.xcassets/VK.imageset/VKH4 logo.pdf differ diff --git a/Sources/UIKitComponents/Media.xcassets/Yandex.imageset/Contents.json b/Sources/UIKitComponents/Media.xcassets/Yandex.imageset/Contents.json new file mode 100644 index 0000000..c6f97a0 --- /dev/null +++ b/Sources/UIKitComponents/Media.xcassets/Yandex.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "Vector.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/UIKitComponents/Media.xcassets/Yandex.imageset/Vector.pdf b/Sources/UIKitComponents/Media.xcassets/Yandex.imageset/Vector.pdf new file mode 100644 index 0000000..b897d5e Binary files /dev/null and b/Sources/UIKitComponents/Media.xcassets/Yandex.imageset/Vector.pdf differ