And another similar warning with overriden functions (nos NS-based this time:
import Foundation
import UIKit
class TestListCell: UICollectionViewCell {
private func doSomething() {
}
override func awakeFromNib() {
// [WARNING] Call to main actor-isolated instance method 'doSomething()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
doSomething()
}
}```
Topic:
Programming Languages
SubTopic:
Swift