From 5cd48e0a66c80895f6f0230189fceffb3d3c53d5 Mon Sep 17 00:00:00 2001 From: Aakiyaru Date: Wed, 28 May 2025 13:25:55 +0700 Subject: [PATCH] fd --- .../dismiss.imageset/Contents.json | 21 ++++++++ .../dismiss.imageset/dismiss_24.png | Bin 0 -> 638 bytes .../SnackBar/SnackBarView.swift | 49 ++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 Sources/UIKitComponents/Media.xcassets/dismiss.imageset/Contents.json create mode 100644 Sources/UIKitComponents/Media.xcassets/dismiss.imageset/dismiss_24.png create mode 100644 Sources/UIKitComponents/SnackBar/SnackBarView.swift diff --git a/Sources/UIKitComponents/Media.xcassets/dismiss.imageset/Contents.json b/Sources/UIKitComponents/Media.xcassets/dismiss.imageset/Contents.json new file mode 100644 index 0000000..71e3e58 --- /dev/null +++ b/Sources/UIKitComponents/Media.xcassets/dismiss.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "dismiss_24.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Sources/UIKitComponents/Media.xcassets/dismiss.imageset/dismiss_24.png b/Sources/UIKitComponents/Media.xcassets/dismiss.imageset/dismiss_24.png new file mode 100644 index 0000000000000000000000000000000000000000..d176e74d8dd39b9851a8f67f11ad18f586614413 GIT binary patch literal 638 zcmV-^0)hRBP)o1KLB&wPKY-zDC|ze527W@yRJcmPP^ffCnes|^5pf)e z0co=pM@Qm+t@9pjF?o()i8Ig~Ri^ou8Kosy&P;8J&p)o~9r`XL;?dW0b z;!sP8-<}1y=RIRmgD%kOH~Lw$OlU#Cy!*outB|Aiu?mP%zFB0yKA1QK%!gSBl3-Yk!stFW1m$YmOib69w3n~G4-s(AT6;M9rTqKOGGJ4uy_T9_= zk2n9}r6=jZ(LC>`^}T_<^q*`;FYc?q!SUtu?+b^y0;S9~w0`6YB&F@Rhh*=m|Lc_y z*2!gUN6k#m0l3af4{3PHDeyB1j}z)m>mt|WvX-DXmD@Q5xIvY9fBv~G{{t{#j|o*t zC~I}{X6hP<^=*$kM?XDD4vwyGvI4mv(C7mBO5skBqjB2@&73#ir0uMX4^EMayOK*< z>gl>wMC+;M0cBnLO>)V3^G&1|oB}+~HHO29Ykv!wKck^-K4@J;8qF!dUQs-q`FQ@i z^X%^m_6U2pJ1(o}Up6jWYEuv{HlRXBe(X1PB99_$3PhE=RefL&#fkC=Ya_qmYKxZn ziOnLri)C_JB=R=PtVCplmmaZ?E>K+RgKXT%^cRF=oXf<`u~)lQTr?(^b07*qoM6N<$f{?5r!T) { + self._isShow = isShow + } + + public var body: some View { + ZStack(alignment: .topLeading) { + Color.white + .frame(height: 120) + .cornerRadius(8) + Text("Произошла ошибка\nНу вот опять") + .robotoFlex(size: 20, font: .black) + .tracking(0.38) + .lineSpacing(2.8) + .padding(.top, 24) + .padding(.leading, 20) + HStack { + Spacer() + Button { + isShow = false + print("no") + } label: { + Image("dismiss", bundle: .module) + .offset(y: -14) + .offset(x: 11) + } + } + + }.frame(maxWidth: .infinity) + .padding() + + } +} + +#Preview { + SnackBarView(isShow: .constant(true)) +}