출발지에서 목적지로 파일이동1. 출발지 폴더를 선택하고 정해진 하위 경로의 파일을 목적지로 이동2. 목적지 폴더가 없을 경우 생성, 목적지에 동일한 파일명이 있을 경우 제거 (덮어쓰기) struct ContentView: View { @State private var sourcePath: URL? @State private var destinationPath: URL? @State private var message: String? var body: some View { VStack { Button("출발지 폴더 선택") { selectFolder { url in source..
// 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?..