weak1 You don’t (always) need [weak self] (해석) You don't (always) need [weak self] - Flawless iOS - Medium You don’t (always) need [weak self] We will talk about weak self inside of Swift closures to avoid retain cycles & explore cases where it may not be necessary to capture self weakly. medium.com In closure let changeColorToRed = DispatchWorkItem { [weak self] in self?.view.backgroundColor = .red } 이 클로저에서 self가 어떻게 약하게 캡쳐되었는지 주목하십시오. 결국 .. 2020. 6. 17. 이전 1 다음