Skip to content

Fix nonisolated(unsafe) static property TabDisplayOrder.swift:51 and SimpleTab.swift:11 #27408

Open
@data-sync-user

Description

@data-sync-user

nonisolated(unsafe) static let defaults = UserDefaults(suiteName: AppInfo.sharedContainerIdentifier)!

and

nonisolated(unsafe) private let userDefaults = UserDefaults(suiteName: AppInfo.sharedContainerIdentifier)!

Static property 'defaults' is not concurrency-safe because non-'Sendable' type 'UserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode

We can make this not static and this will hopefully resolve the issue

┆Issue is synchronized with this Jira Task

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