반응형
iOS SwiftUI 드래그 앤 드롭 Drag And Drop (DND)
// https://www.codecademy.com/resources/docs/swiftui/drag-and-drop // https://hyeondxx.medium.com/swiftui-customlist-순서-바꾸기-58ff224b1ad8 /// 드래그 앤 드랍 (순서 변경) struct DropViewDelegate: DropDelegate { let item: String @Binding var items: [String] @Binding var draggedItem: String? // 드래그 할 때 아이템 우측 상단에 표시되는 이미지 설정 (이 매서드 아예 안쓰면 기본 값 copy : + 플러스 이미지) func dropUpdated(info: DropInfo) -> DropProposal?..
카테고리 없음
2024. 4. 1. 00:00
반응형