my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for user preference, I have a DataCoordinator.swift class which schedules the AP
Swift 5 here. I was calling a function from a property didSet and testing another property from the same object and I got this error.
didSet
I fixed it by calling my function from within another thread:
DispatchQueue.global(qos: .userInitiated).async { // do something }
Basic fix but it works.