Skip to content

Commit

Permalink
Merge pull request #45 from cybozu/concurrency
Browse files Browse the repository at this point in the history
Fix warnings of StrictConcurrency
  • Loading branch information
Kyome22 committed Jul 8, 2024
2 parents 1d1bd16 + 389ed82 commit c36534e
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 c36534e

Please sign in to comment.