Skip to content

Commit

Permalink
Fix warnings for StrictConcurrency (LicenseList)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyome22 committed Jul 8, 2024
1 parent 1d1bd16 commit 389ed82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 389ed82

Please sign in to comment.