Skip to content

Commit

Permalink
Merge pull request #350 from GSM-MSG/349-file-section-collapse-toggle
Browse files Browse the repository at this point in the history
๐Ÿ’„  :: [#349] ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ ์„น์…˜ Collapse ๊ธฐ๋Šฅ ์ œ๊ณต
  • Loading branch information
baekteun authored Jul 12, 2024
2 parents 5848ca5 + 93ec669 commit e40893e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
}
Expand Down

0 comments on commit e40893e

Please sign in to comment.