[Instruments 맛보기] Swift Concurrency 시각화 및 최적화하기
·
iOS/Instruments
🏁 학습할 내용예제 코드의 문제 파악하기Instruments 보며, 원인 프로파일링예제를 통한 코드 개선해보기😂 예제코드@MainActorclass CompressionState: ObservableObject { @Published var files: [FileStatus] = [] var logs: [String] = [] func update(url: URL, progress: Double) { if let loc = files.firstIndex(where: {$0.url == url}) { files[loc].progress = progress } } func update(url: URL, uncompres..