Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftretain cycles and capture listsSingle-choice MCQ

Does the following code create a retain cycle?

class ViewController { var name = "VC" func load() { DispatchQueue.main.asyncAfter(deadline: .now() + 1) { print(self.name) } } }