Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- PushNotification
- apns
- array
- CoreImage
- singleton
- NotificationCenter
- error
- SWIFTUI
- struct
- calendar
- Git
- Observer
- class
- list
- mvvm
- SWIFT
- IOS
- ScrollView
- 글또
- 화면전환
- escaping
- self
- Animation
- http
- uikit
- segue
- 고차함수
- Switch
- Refresh
- viewlifecycle
Archives
- Today
- Total
목록Expandable List (1)
seong_hye, the developer
📘List Drop DownList 내 항목을 눌렀을 때 드롭다운처럼 하위 항목이 펼쳐지는 UIExpandable List 또는 Accordion List라고 부름각 항목의 펼침 상태를 추적하는 플래그가 필요함🔹항목 모델 정의struct DataModel { let iconName: String let title: String var destination: AnyView}struct DropdownItem: Identifiable { let id = UUID() let title: TitleModel let details: [DataModel] var isExpanded: Bool = false}🔹메인 뷰 - List를 활용한 DropDown@Binding va..
IOS/SwiftUI
2023. 7. 20.