프로그래밍
SwiftUI / PhotosPicker Example Code
// // PhotoPickerBootcamp.swift // SwiftUIStudy // // Created by 김재원 on 4/11/24. // import PhotosUI import SwiftUI @MainActor final class PhotoPickerViewModel: ObservableObject { @Published private(set) var selectedImage: UIImage? = nil @Published var imageSelection: PhotosPickerItem? = nil { didSet { setImage(from: imageSelection) } } @Published private(set) var selectedImages: [UIImage] = [] @..