Foundation.Date does not conform to Sendable. Now what?

Viewed 5

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?

0 Answers
Related