You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am just wondering when DeviceKit will be Swift 6 compliant. On my import for DeviceKit I get the following suggestion.
Add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DeviceKit'
I have and enum like so where I use it:
enum LAC {
// MARK: - DeviceKit
static let device = Device.current
// MARK: - Submit Feedback
static let categoryDescritionNotSet = String(localized: "Choose a category and enter a description.", table: "ContactUsView+Strings", comment: "Message to user that something is missing on view")
}
This way in my code I can call LAC.device.isPad or any of the other options DeviceKit offers.
Not sure if this is the best way to use this package, but I just wanted to instantiate this in one place instead of putting
import DeviceKit and
let device = Device.current in many places in my code.
Can you provide some feedback on when this package will support Swift 6?
Thanks
Mark
The text was updated successfully, but these errors were encountered:
I’ve done that, just not sure if you guys are working on making Swift 6 compliant.Thanks,-Mark/*Mark J PerrymanApple Product ***@***.*** Oct 21, 2024, at 12:48, kudit ***@***.***> wrote:
You can probably add @mainactor to the static variable to silence the warning.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
I am just wondering when DeviceKit will be Swift 6 compliant. On my import for DeviceKit I get the following suggestion.
I have and enum like so where I use it:
This way in my code I can call LAC.device.isPad or any of the other options DeviceKit offers.
Not sure if this is the best way to use this package, but I just wanted to instantiate this in one place instead of putting
Can you provide some feedback on when this package will support Swift 6?
Thanks
Mark
The text was updated successfully, but these errors were encountered: