Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings of StrictConcurrency #45

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ let package = Package(
),
.target(
name: "LicenseList",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("GlobalConcurrency"),
],
plugins: ["PrepareLicenseList"]
)
]
Expand Down
4 changes: 2 additions & 2 deletions Sources/LicenseList/LicenseViewStyle.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import SwiftUI

/// A style for license views.
public enum LicenseViewStyle {
public enum LicenseViewStyle: Sendable {
/// The style used to display just the license body.
case plain
/// The style used to display the license body and repository anchor link.
case withRepositoryAnchorLink
}

struct LicenseViewStyleKey: EnvironmentKey {
static var defaultValue: LicenseViewStyle = .plain
static let defaultValue: LicenseViewStyle = .plain
}

extension EnvironmentValues {
Expand Down
Loading