본문 바로가기

seong_hye, the developer

검색하기
seong_hye, the developer
프로필사진 seong_hye

  • My P_Life (118) N
    • JAVA (3)
    • 알고리즘 코드 (3)
    • IOS (99) N
      • SwiftUI (25)
      • UIKit (13) N
      • Error (7)
    • Infomation (6)
      • Firebase (1)
      • Git (1)
    • Daily Life (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
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
  • struct
  • Git
  • http
  • error
  • protocol
  • ScrollView
  • segue
  • singleton
  • calendar
  • PushNotification
  • 고차함수
  • Refresh
  • NotificationCenter
  • escaping
  • list
  • 글또
  • mvvm
  • viewlifecycle
  • uikit
  • self
  • Switch
  • 화면전환
  • array
  • SWIFT
  • SWIFTUI
  • apns
  • IOS
  • Observer
  • Animation
  • class
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Expandable List (1)

seong_hye, the developer

Swift) List 속 DropDown 사용하기

📘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.
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바