Build Information
Successful build of SwiftUIOverlayContainer, reference 2.4.1 (64a124
), with Swift 6.0 for macOS (SPM) on 11 Nov 2024 09:22:35 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fatbobman/SwiftUIOverlayContainer.git
Reference: 2.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fatbobman/SwiftUIOverlayContainer
* tag 2.4.1 -> FETCH_HEAD
HEAD is now at 64a124b fix typo
Cloned https://github.com/fatbobman/SwiftUIOverlayContainer.git
Revision (git rev-parse @):
64a124ba613adc9f2bb7bf00f5a5e8b22a816d14
SUCCESS checkout https://github.com/fatbobman/SwiftUIOverlayContainer.git at 2.4.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftuioverlaycontainer",
"name": "SwiftUIOverlayContainer",
"url": "https://github.com/fatbobman/SwiftUIOverlayContainer.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIOverlayContainer",
"dependencies": [
]
}
]
}
Fetching https://github.com/fatbobman/SwiftUIOverlayContainer.git
[1/1964] Fetching swiftuioverlaycontainer
Fetched https://github.com/fatbobman/SwiftUIOverlayContainer.git from cache (1.52s)
Creating working copy for https://github.com/fatbobman/SwiftUIOverlayContainer.git
Working copy of https://github.com/fatbobman/SwiftUIOverlayContainer.git resolved at 2.4.1 (64a124b)
warning: '.resolve-product-dependencies': dependency 'swiftuioverlaycontainer' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/fatbobman/SwiftUIOverlayContainer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/26] Emitting module SwiftUIOverlayContainer
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/Container.swift:239:9: warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
236 | }
237 |
238 | extension MessageView: ContainerViewConfigurationProtocol {
| `- note: add '@preconcurrency' to the 'ContainerViewConfigurationProtocol' conformance to defer isolation checking to run time
239 | var shadowStyle: ContainerViewShadowStyle? {
| `- warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
240 | .radius(10)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/ContainerViewProtocols.swift:51:9: note: 'shadowStyle' declared here
49 | ///
50 | /// if your view is not fully opaque, It's better to set shadow in container view inside
51 | var shadowStyle: ContainerViewShadowStyle? { get }
| `- note: 'shadowStyle' declared here
52 |
53 | /// The gesture of dismiss
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/ViewFrameInfoModifier.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | struct ViewFrameKey: PreferenceKey {
16 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) {}
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerManager/ContainerManager.swift:234:16: warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// Because the Container Manager adopts the singleton pattern, you can directly call public methods such as show and dismiss through code even if you are not in the SwiftUI view.
32 | public final class ContainerManager: ContainerManagerLogger {
| `- note: class 'ContainerManager' does not conform to the 'Sendable' protocol
33 | var publishers: [String: ContainerViewPublisher] = [:]
34 |
:
232 |
233 | public extension ContainerManager {
234 | static let share = ContainerManager()
| |- warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'share' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | }
236 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/TransitionAndAnimation.swift:44:23: warning: static property 'popMessageFromTop' is not concurrency-safe because non-'Sendable' type 'AnyTransition' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// An example showing how to customize a transition for specific case.
44 | public static let popMessageFromTop: AnyTransition = .move(edge: .top).combined(with: .opacity)
| |- warning: static property 'popMessageFromTop' is not concurrency-safe because non-'Sendable' type 'AnyTransition' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popMessageFromTop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
SwiftUICore.AnyTransition:2:23: note: struct 'AnyTransition' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyTransition {
| `- note: struct 'AnyTransition' does not conform to the 'Sendable' protocol
3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
4 | public init<T>(_ transition: T) where T : Transition
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/EnvironmentKey/ContainerKey.swift:63:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | /// An Environment Key that provides some informations and methods about container in the container views.
62 | public struct ContainerEnvironmentKey: EnvironmentKey {
63 | public static var defaultValue = ContainerEnvironment(
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | containerName: "`ContainerEnvironmentKey` Can only be used in container views",
65 | containerFrame: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/EnvironmentKey/ContainerManagerKey.swift:17:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// The Environment Key of container manager. An instance of container manager.
16 | struct ContainerManagerKey: EnvironmentKey {
17 | static var defaultValue = ContainerManager.share
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
[4/28] Compiling SwiftUIOverlayContainer DissmissGesture.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:59:74: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
57 | switch self {
58 | case .tap:
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:61:74: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:63:96: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:65:61: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | case .disable:
67 | return nil
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:84:18: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
82 | }
83 | }
84 | .eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | }
86 | #endif
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:69:20: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
67 | return nil
68 | case .swipeUp, .swipeDown, .swipeLeft, .swipeRight:
69 | return SwipeGesture(minimumDistance: 10, coordinateSpace: .global)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | .onEnded { direction in
71 | switch (direction, self) {
:
134 | private let coordinateSpace: CoordinateSpace
135 |
136 | init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local) {
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
137 | self.minimumDistance = minimumDistance
138 | self.coordinateSpace = coordinateSpace
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/IdentifiableContainerView.swift:39:26: warning: call to main actor-isolated instance method 'eraseToAnyView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | ) {
38 | self.id = id
39 | self.view = view.eraseToAnyView()
| `- warning: call to main actor-isolated instance method 'eraseToAnyView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | self.configuration = viewConfiguration
41 | self.isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Extensions/SwiftUI.swift:17:10: note: calls to instance method 'eraseToAnyView()' from outside of its actor context are implicitly asynchronous
15 |
16 | extension View {
17 | func eraseToAnyView() -> AnyView {
| `- note: calls to instance method 'eraseToAnyView()' from outside of its actor context are implicitly asynchronous
18 | AnyView(self)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:59:74: warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
57 | switch self {
58 | case .tap:
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:61:74: warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:63:96: warning: sending task-isolated value of type '_EndedGesture<LongPressGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<LongPressGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:65:61: warning: sending task-isolated value of type '_EndedGesture<(AnyGesture<Void>)>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<(AnyGesture<Void>)>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
66 | case .disable:
67 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:84:18: warning: sending task-isolated value of type '_EndedGesture<SwipeGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
82 | }
83 | }
84 | .eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<SwipeGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
85 | }
86 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/IdentifiableContainerView.swift:39:26: warning: sending 'view' risks causing data races; this is an error in the Swift 6 language mode
37 | ) {
38 | self.id = id
39 | self.view = view.eraseToAnyView()
| |- warning: sending 'view' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'view' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
40 | self.configuration = viewConfiguration
41 | self.isPresented = isPresented
[5/28] Compiling SwiftUIOverlayContainer IdentifiableContainerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:59:74: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
57 | switch self {
58 | case .tap:
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:61:74: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:63:96: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:65:61: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | case .disable:
67 | return nil
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:84:18: warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
82 | }
83 | }
84 | .eraseToAnyGestureForDismiss()
| `- warning: call to main actor-isolated instance method 'eraseToAnyGestureForDismiss()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 | }
86 | #endif
:
115 | /// let gesture = LongPressGesture(minimumDuration: 1, maximumDistance: 5).eraseToAnyGestureForDismiss()
116 | ///
117 | func eraseToAnyGestureForDismiss() -> AnyGesture<Void> {
| `- note: calls to instance method 'eraseToAnyGestureForDismiss()' from outside of its actor context are implicitly asynchronous
118 | AnyGesture(map { _ in () })
119 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:69:20: warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | /// The dismiss Action not only includes the cancellation action of Overlay Container view,
46 | /// but also the dismiss closure specified by user
47 | func generateGesture(with dismissAction: @escaping DismissAction) -> AnyGesture<Void>? {
| `- note: add '@MainActor' to make instance method 'generateGesture(with:)' part of global actor 'MainActor'
48 | // only support longPress in tvOS
49 | #if os(tvOS)
:
67 | return nil
68 | case .swipeUp, .swipeDown, .swipeLeft, .swipeRight:
69 | return SwipeGesture(minimumDistance: 10, coordinateSpace: .global)
| `- warning: call to main actor-isolated initializer 'init(minimumDistance:coordinateSpace:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | .onEnded { direction in
71 | switch (direction, self) {
:
134 | private let coordinateSpace: CoordinateSpace
135 |
136 | init(minimumDistance: CGFloat = 10, coordinateSpace: CoordinateSpace = .local) {
| `- note: calls to initializer 'init(minimumDistance:coordinateSpace:)' from outside of its actor context are implicitly asynchronous
137 | self.minimumDistance = minimumDistance
138 | self.coordinateSpace = coordinateSpace
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/IdentifiableContainerView.swift:39:26: warning: call to main actor-isolated instance method 'eraseToAnyView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | ) {
38 | self.id = id
39 | self.view = view.eraseToAnyView()
| `- warning: call to main actor-isolated instance method 'eraseToAnyView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | self.configuration = viewConfiguration
41 | self.isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Extensions/SwiftUI.swift:17:10: note: calls to instance method 'eraseToAnyView()' from outside of its actor context are implicitly asynchronous
15 |
16 | extension View {
17 | func eraseToAnyView() -> AnyView {
| `- note: calls to instance method 'eraseToAnyView()' from outside of its actor context are implicitly asynchronous
18 | AnyView(self)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:59:74: warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
57 | switch self {
58 | case .tap:
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:61:74: warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
59 | return TapGesture(count: 1).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
60 | case .doubleTap:
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<TapGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:63:96: warning: sending task-isolated value of type '_EndedGesture<LongPressGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
61 | return TapGesture(count: 2).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
62 | case .longPress(let seconds):
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<LongPressGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:65:61: warning: sending task-isolated value of type '_EndedGesture<(AnyGesture<Void>)>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
63 | return LongPressGesture(minimumDuration: seconds).onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
64 | case .customGesture(let gesture):
65 | return gesture.onEnded { _ in dismissAction() }.eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<(AnyGesture<Void>)>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
66 | case .disable:
67 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/DissmissGesture.swift:84:18: warning: sending task-isolated value of type '_EndedGesture<SwipeGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
82 | }
83 | }
84 | .eraseToAnyGestureForDismiss()
| `- warning: sending task-isolated value of type '_EndedGesture<SwipeGesture>' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
85 | }
86 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/IdentifiableContainerView.swift:39:26: warning: sending 'view' risks causing data races; this is an error in the Swift 6 language mode
37 | ) {
38 | self.id = id
39 | self.view = view.eraseToAnyView()
| |- warning: sending 'view' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'view' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
40 | self.configuration = viewConfiguration
41 | self.isPresented = isPresented
[6/28] Compiling SwiftUIOverlayContainer ContainerType.swift
[7/28] Compiling SwiftUIOverlayContainer GenericStack.swift
[8/28] Compiling SwiftUIOverlayContainer QueueHandler.swift
[9/28] Compiling SwiftUIOverlayContainer SwiftUI.swift
[10/28] Compiling SwiftUIOverlayContainer LoggerProtocol.swift
[11/28] Compiling SwiftUIOverlayContainer CompositeContainerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/Container.swift:239:9: warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
236 | }
237 |
238 | extension MessageView: ContainerViewConfigurationProtocol {
| `- note: add '@preconcurrency' to the 'ContainerViewConfigurationProtocol' conformance to defer isolation checking to run time
239 | var shadowStyle: ContainerViewShadowStyle? {
| `- warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
240 | .radius(10)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/ContainerViewProtocols.swift:51:9: note: 'shadowStyle' declared here
49 | ///
50 | /// if your view is not fully opaque, It's better to set shadow in container view inside
51 | var shadowStyle: ContainerViewShadowStyle? { get }
| `- note: 'shadowStyle' declared here
52 |
53 | /// The gesture of dismiss
[12/28] Compiling SwiftUIOverlayContainer Container.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/Container.swift:239:9: warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
236 | }
237 |
238 | extension MessageView: ContainerViewConfigurationProtocol {
| `- note: add '@preconcurrency' to the 'ContainerViewConfigurationProtocol' conformance to defer isolation checking to run time
239 | var shadowStyle: ContainerViewShadowStyle? {
| `- warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
240 | .radius(10)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/ContainerViewProtocols.swift:51:9: note: 'shadowStyle' declared here
49 | ///
50 | /// if your view is not fully opaque, It's better to set shadow in container view inside
51 | var shadowStyle: ContainerViewShadowStyle? { get }
| `- note: 'shadowStyle' declared here
52 |
53 | /// The gesture of dismiss
[13/28] Compiling SwiftUIOverlayContainer ContainerProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/Container.swift:239:9: warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
236 | }
237 |
238 | extension MessageView: ContainerViewConfigurationProtocol {
| `- note: add '@preconcurrency' to the 'ContainerViewConfigurationProtocol' conformance to defer isolation checking to run time
239 | var shadowStyle: ContainerViewShadowStyle? {
| `- warning: main actor-isolated property 'shadowStyle' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
240 | .radius(10)
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/ContainerViewProtocols.swift:51:9: note: 'shadowStyle' declared here
49 | ///
50 | /// if your view is not fully opaque, It's better to set shadow in container view inside
51 | var shadowStyle: ContainerViewShadowStyle? { get }
| `- note: 'shadowStyle' declared here
52 |
53 | /// The gesture of dismiss
[14/28] Compiling SwiftUIOverlayContainer ContainerManagerKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/EnvironmentKey/ContainerManagerKey.swift:17:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// The Environment Key of container manager. An instance of container manager.
16 | struct ContainerManagerKey: EnvironmentKey {
17 | static var defaultValue = ContainerManager.share
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerManager/ContainerManager.swift:234:16: warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// Because the Container Manager adopts the singleton pattern, you can directly call public methods such as show and dismiss through code even if you are not in the SwiftUI view.
32 | public final class ContainerManager: ContainerManagerLogger {
| `- note: class 'ContainerManager' does not conform to the 'Sendable' protocol
33 | var publishers: [String: ContainerViewPublisher] = [:]
34 |
:
232 |
233 | public extension ContainerManager {
234 | static let share = ContainerManager()
| |- warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'share' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | }
236 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Extensions/Foundation.swift:44:9: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | }
43 | dispatchQueue.asyncAfter(deadline: .now() + seconds) {
44 | action()
| |- warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 | }
46 | }
[15/28] Compiling SwiftUIOverlayContainer Foundation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/EnvironmentKey/ContainerManagerKey.swift:17:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// The Environment Key of container manager. An instance of container manager.
16 | struct ContainerManagerKey: EnvironmentKey {
17 | static var defaultValue = ContainerManager.share
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerManager/ContainerManager.swift:234:16: warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// Because the Container Manager adopts the singleton pattern, you can directly call public methods such as show and dismiss through code even if you are not in the SwiftUI view.
32 | public final class ContainerManager: ContainerManagerLogger {
| `- note: class 'ContainerManager' does not conform to the 'Sendable' protocol
33 | var publishers: [String: ContainerViewPublisher] = [:]
34 |
:
232 |
233 | public extension ContainerManager {
234 | static let share = ContainerManager()
| |- warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'share' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | }
236 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Extensions/Foundation.swift:44:9: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | }
43 | dispatchQueue.asyncAfter(deadline: .now() + seconds) {
44 | action()
| |- warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
45 | }
46 | }
[16/28] Compiling SwiftUIOverlayContainer ViewContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/ViewFrameInfoModifier.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | struct ViewFrameKey: PreferenceKey {
16 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) {}
18 | }
[17/28] Compiling SwiftUIOverlayContainer ViewFrameInfoModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/ViewFrameInfoModifier.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | struct ViewFrameKey: PreferenceKey {
16 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) {}
18 | }
[18/28] Compiling SwiftUIOverlayContainer ContainerAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/Container/ViewFrameInfoModifier.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | struct ViewFrameKey: PreferenceKey {
16 | static var defaultValue: CGRect = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static func reduce(value: inout CGRect, nextValue: () -> CGRect) {}
18 | }
[19/28] Compiling SwiftUIOverlayContainer ModifierForContainerView.swift
[20/28] Compiling SwiftUIOverlayContainer ShadowStyle.swift
[21/28] Compiling SwiftUIOverlayContainer ContainerManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerManager/ContainerManager.swift:234:16: warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// Because the Container Manager adopts the singleton pattern, you can directly call public methods such as show and dismiss through code even if you are not in the SwiftUI view.
32 | public final class ContainerManager: ContainerManagerLogger {
| `- note: class 'ContainerManager' does not conform to the 'Sendable' protocol
33 | var publishers: [String: ContainerViewPublisher] = [:]
34 |
:
232 |
233 | public extension ContainerManager {
234 | static let share = ContainerManager()
| |- warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'share' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | }
236 |
[22/28] Compiling SwiftUIOverlayContainer ContainerManagerProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerManager/ContainerManager.swift:234:16: warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// Because the Container Manager adopts the singleton pattern, you can directly call public methods such as show and dismiss through code even if you are not in the SwiftUI view.
32 | public final class ContainerManager: ContainerManagerLogger {
| `- note: class 'ContainerManager' does not conform to the 'Sendable' protocol
33 | var publishers: [String: ContainerViewPublisher] = [:]
34 |
:
232 |
233 | public extension ContainerManager {
234 | static let share = ContainerManager()
| |- warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'share' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | }
236 |
[23/28] Compiling SwiftUIOverlayContainer Alignment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerManager/ContainerManager.swift:234:16: warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | ///
31 | /// Because the Container Manager adopts the singleton pattern, you can directly call public methods such as show and dismiss through code even if you are not in the SwiftUI view.
32 | public final class ContainerManager: ContainerManagerLogger {
| `- note: class 'ContainerManager' does not conform to the 'Sendable' protocol
33 | var publishers: [String: ContainerViewPublisher] = [:]
34 |
:
232 |
233 | public extension ContainerManager {
234 | static let share = ContainerManager()
| |- warning: static property 'share' is not concurrency-safe because non-'Sendable' type 'ContainerManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'share' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | }
236 |
[24/28] Compiling SwiftUIOverlayContainer TransitionAndAnimation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/TransitionAndAnimation.swift:44:23: warning: static property 'popMessageFromTop' is not concurrency-safe because non-'Sendable' type 'AnyTransition' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// An example showing how to customize a transition for specific case.
44 | public static let popMessageFromTop: AnyTransition = .move(edge: .top).combined(with: .opacity)
| |- warning: static property 'popMessageFromTop' is not concurrency-safe because non-'Sendable' type 'AnyTransition' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popMessageFromTop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
SwiftUICore.AnyTransition:2:23: note: struct 'AnyTransition' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyTransition {
| `- note: struct 'AnyTransition' does not conform to the 'Sendable' protocol
3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
4 | public init<T>(_ transition: T) where T : Transition
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/EnvironmentKey/ContainerKey.swift:63:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | /// An Environment Key that provides some informations and methods about container in the container views.
62 | public struct ContainerEnvironmentKey: EnvironmentKey {
63 | public static var defaultValue = ContainerEnvironment(
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | containerName: "`ContainerEnvironmentKey` Can only be used in container views",
65 | containerFrame: .zero,
[25/28] Compiling SwiftUIOverlayContainer ContainerKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/TransitionAndAnimation.swift:44:23: warning: static property 'popMessageFromTop' is not concurrency-safe because non-'Sendable' type 'AnyTransition' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// An example showing how to customize a transition for specific case.
44 | public static let popMessageFromTop: AnyTransition = .move(edge: .top).combined(with: .opacity)
| |- warning: static property 'popMessageFromTop' is not concurrency-safe because non-'Sendable' type 'AnyTransition' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'popMessageFromTop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
SwiftUICore.AnyTransition:2:23: note: struct 'AnyTransition' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyTransition {
| `- note: struct 'AnyTransition' does not conform to the 'Sendable' protocol
3 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
4 | public init<T>(_ transition: T) where T : Transition
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/EnvironmentKey/ContainerKey.swift:63:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | /// An Environment Key that provides some informations and methods about container in the container views.
62 | public struct ContainerEnvironmentKey: EnvironmentKey {
63 | public static var defaultValue = ContainerEnvironment(
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | containerName: "`ContainerEnvironmentKey` Can only be used in container views",
65 | containerFrame: .zero,
[26/28] Compiling SwiftUIOverlayContainer AutoDismiss.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/AutoDismiss.swift:67:29: warning: capture of 'dismissAction' with non-sendable type 'DismissAction' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | if !Task.isCancelled {
66 | await MainActor.run {
67 | dismissAction()
| |- warning: capture of 'dismissAction' with non-sendable type 'DismissAction' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
68 | }
69 | }
[27/28] Compiling SwiftUIOverlayContainer BackgroundStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/AutoDismiss.swift:67:29: warning: capture of 'dismissAction' with non-sendable type 'DismissAction' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | if !Task.isCancelled {
66 | await MainActor.run {
67 | dismissAction()
| |- warning: capture of 'dismissAction' with non-sendable type 'DismissAction' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
68 | }
69 | }
[28/28] Compiling SwiftUIOverlayContainer ContainerViewProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIOverlayContainer/ContainerView/AutoDismiss.swift:67:29: warning: capture of 'dismissAction' with non-sendable type 'DismissAction' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | if !Task.isCancelled {
66 | await MainActor.run {
67 | dismissAction()
| |- warning: capture of 'dismissAction' with non-sendable type 'DismissAction' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
68 | }
69 | }
Build complete! (29.95s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftUIOverlayContainer",
"name" : "SwiftUIOverlayContainer",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "SwiftUIOverlayContainer",
"targets" : [
"SwiftUIOverlayContainer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftUIOverlayContainerTests",
"module_type" : "SwiftTarget",
"name" : "SwiftUIOverlayContainerTests",
"path" : "Tests/SwiftUIOverlayContainerTests",
"sources" : [
"AutoDismissMergeTests.swift",
"BackgroundMergeTests.swift",
"ContainerManagerTests.swift",
"DismissGestureMergeTests.swift",
"ExtensionTests.swift",
"QueueControlOpretorTests.swift",
"QueueHandlerForMultipleTests.swift",
"QueueHandlerForOneByOneTests.swift",
"QueueHandlerForOneByeOneWaitFinishTests.swift",
"QueueHandlerTests.swift",
"ShadowMergeTests.swift",
"SwiftUIOverlayContainerTests.swift",
"TapToDismissTests.swift",
"TransitionMergeTests.swift"
],
"target_dependencies" : [
"SwiftUIOverlayContainer"
],
"type" : "test"
},
{
"c99name" : "SwiftUIOverlayContainer",
"module_type" : "SwiftTarget",
"name" : "SwiftUIOverlayContainer",
"path" : "Sources/SwiftUIOverlayContainer",
"product_memberships" : [
"SwiftUIOverlayContainer"
],
"sources" : [
"Container/CompositeContainerView.swift",
"Container/Container.swift",
"Container/ContainerProtocols.swift",
"Container/ContainerType.swift",
"Container/GenericStack.swift",
"Container/QueueHandler.swift",
"Container/ViewContainer.swift",
"Container/ViewFrameInfoModifier.swift",
"ContainerManager/ContainerAction.swift",
"ContainerManager/ContainerManager.swift",
"ContainerManager/ContainerManagerProtocols.swift",
"ContainerView/Alignment.swift",
"ContainerView/AutoDismiss.swift",
"ContainerView/BackgroundStyle.swift",
"ContainerView/ContainerViewProtocols.swift",
"ContainerView/DissmissGesture.swift",
"ContainerView/IdentifiableContainerView.swift",
"ContainerView/ModifierForContainerView.swift",
"ContainerView/ShadowStyle.swift",
"ContainerView/TransitionAndAnimation.swift",
"EnvironmentKey/ContainerKey.swift",
"EnvironmentKey/ContainerManagerKey.swift",
"Extensions/Foundation.swift",
"Extensions/SwiftUI.swift",
"Logger/LoggerProtocol.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.