The following presents a warning in Xcode 14 complete concurrency checking mode.
struct Article: Sendable {
let title: String
let date: Date // non sendable type warning
}
This warning will become an error in Swift 6.
How do we handle this?
The sendable attribute only applies to function types, so we can convert the property to that type instead.