본문 바로가기

seong_hye, the developer

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

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

목록checkbox (1)

seong_hye, the developer

SwiftUI) List에 CheckBox 연동하기

📘 List와 CheckBoxList item에 그냥 checkBox를 넣게 되면 개별 계산이 안되는 경우가 있어서개별로 활동가능한 경우를 정리해두려 작성 🔹Item 데이터 모델struct Item: Identifiable { let id = UUID() let name: String var isChecked: Bool} 🔹List에 적용struct ContentView: View { @State private var items: [Item] = [ Item(name: "사과", isChecked: false), Item(name: "바나나", isChecked: false), Item(name: "오렌지", isChecked: false), ..

IOS/SwiftUI 2023. 9. 19.
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바