From 93ec669715b7fcae4c8e3fbd00aa6201dcc18770 Mon Sep 17 00:00:00 2001 From: baegteun Date: Fri, 12 Jul 2024 01:16:53 +0900 Subject: [PATCH] =?UTF-8?q?:lipstick:=20::=20[#349]=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EB=8B=A4=EC=9A=B4=EB=A1=9C=EB=93=9C=20=EC=84=B9=EC=85=98=20?= =?UTF-8?q?Collapse=20=EA=B8=B0=EB=8A=A5=20=EC=A0=9C=EA=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scene/Components/GSMAuthenticationFileDownloadView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Projects/Feature/GSMAuthenticationFormFeature/Sources/Scene/Components/GSMAuthenticationFileDownloadView.swift b/Projects/Feature/GSMAuthenticationFormFeature/Sources/Scene/Components/GSMAuthenticationFileDownloadView.swift index d2eeee99..c8bf6e94 100644 --- a/Projects/Feature/GSMAuthenticationFormFeature/Sources/Scene/Components/GSMAuthenticationFileDownloadView.swift +++ b/Projects/Feature/GSMAuthenticationFormFeature/Sources/Scene/Components/GSMAuthenticationFileDownloadView.swift @@ -4,6 +4,7 @@ import SwiftUI struct GSMAuthenticationFileDownloadView: View { @Environment(\.openURL) var openURL + @State private var isCollapsed = false private let uiModel: [GSMAuthenticationFormUIModel.File] private typealias File = GSMAuthenticationFormUIModel.File @@ -26,12 +27,14 @@ struct GSMAuthenticationFileDownloadView: View { Spacer() SMSIcon(.downChevron) - .rotationEffect(false ? .degrees(90) : .degrees(0)) + .rotationEffect(isCollapsed ? .degrees(90) : .degrees(0)) .buttonWrapper { + isCollapsed.toggle() } } fileSectionList(sections: files) + .conditional(!isCollapsed) } .padding(20) }