Skip to content

Swift 6 Compliant #425

Open
Open
@tazmancoder

Description

@tazmancoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions