Build Information
Successful build of SwiftUIPager with Swift 6.0 (beta) for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fermoya/SwiftUIPager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fermoya/SwiftUIPager
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 232675d fix(#303): make sure onPageChanged will be called
Cloned https://github.com/fermoya/SwiftUIPager.git
Revision (git rev-parse @):
232675d4a401dbfea81be7cafdbfb8ab7e4844ac
SUCCESS checkout https://github.com/fermoya/SwiftUIPager.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/fermoya/SwiftUIPager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/21] Compiling SwiftUIPager Pager+Buildable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:39:23: warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | /// Standard animation. Single pagination `Pager` defaults to this value. Ease-out, 0.35 seconds.
39 | public static var standard: PagingAnimation = .standard(duration: 0.35)
| |- warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standard' 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
40 |
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PaginationSensitivity.swift:28:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// The shift relative to container size needs to be greater than or equal to 50%
28 | public static var `default`: Self = .medium
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
29 |
30 | var value: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/ContentLoadingPolicy.swift:26:16: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Default policy, a.k.a, `lazy(recyclingRatio: 5)`
26 | static var `default`: ContentLoadingPolicy = .lazy(recyclingRatio: 5)
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/GesturePriority.swift:24:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// Defines a set of priorities to interact with gestures
12 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | public enum GesturePriority {
| `- note: consider making enum 'GesturePriority' conform to the 'Sendable' protocol
14 | /// Refers to `highPriorityGesture` modifier
15 | case high
:
22 |
23 | /// Default value, a.k.a, `normal`
24 | static let `default`: GesturePriority = .normal
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:217:18: warning: call to main actor-isolated instance method 'partialPagination' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
217 | .partialPagination(pageRatio)
| `- warning: call to main actor-isolated instance method 'partialPagination' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
218 |
219 | #if !os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:69:10: note: calls to instance method 'partialPagination' from outside of its actor context are implicitly asynchronous
67 | ///
68 | /// For instance, setting this `ratio` to `0.5` will make `Pager` reveal half of the next item tops.
69 | func partialPagination(_ ratio: CGFloat) -> Self {
| `- note: calls to instance method 'partialPagination' from outside of its actor context are implicitly asynchronous
70 | mutating(keyPath: \.pageRatio, value: ratio)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:216:18: warning: call to main actor-isolated instance method 'pagingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
| `- warning: call to main actor-isolated instance method 'pagingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
217 | .partialPagination(pageRatio)
218 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:17:10: note: calls to instance method 'pagingAnimation' from outside of its actor context are implicitly asynchronous
15 | ///
16 | /// - Parameter value: callback to get an animation based on the result of dragging
17 | func pagingAnimation(_ value: ((Pager.DragResult) -> PagingAnimation)?) -> Self {
| `- note: calls to instance method 'pagingAnimation' from outside of its actor context are implicitly asynchronous
18 | mutating(keyPath: \.pagingAnimation, value: value)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:215:18: warning: call to main actor-isolated instance method 'padding' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
| `- warning: call to main actor-isolated instance method 'padding' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | .pagingAnimation(pagingAnimation)
217 | .partialPagination(pageRatio)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:320:10: note: calls to instance method 'padding' from outside of its actor context are implicitly asynchronous
318 | ///
319 | /// - Parameter length: padding
320 | func padding(_ length: CGFloat) -> Self {
| `- note: calls to instance method 'padding' from outside of its actor context are implicitly asynchronous
321 | mutating(keyPath: \.sideInsets, value: length)
322 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:214:18: warning: call to main actor-isolated instance method 'onPageWillChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
| `- warning: call to main actor-isolated instance method 'onPageWillChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:298:10: note: calls to instance method 'onPageWillChange' from outside of its actor context are implicitly asynchronous
296 | ///
297 | /// - Parameter callback: block to be called when `page` will change
298 | func onPageWillChange(_ callback: ((Int) -> Void)?) -> Self {
| `- note: calls to instance method 'onPageWillChange' from outside of its actor context are implicitly asynchronous
299 | mutating(keyPath: \.onPageWillChange, value: callback)
300 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:213:18: warning: call to main actor-isolated instance method 'onPageWillTransition' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
| `- warning: call to main actor-isolated instance method 'onPageWillTransition' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:306:10: note: calls to instance method 'onPageWillTransition' from outside of its actor context are implicitly asynchronous
304 | ///
305 | /// - Parameter callback: block to be called when the user ends dragging and a transition will occur
306 | func onPageWillTransition(_ callback: ((Result<PageTransition, PageTransitionError>) -> Void)?) -> Self {
| `- note: calls to instance method 'onPageWillTransition' from outside of its actor context are implicitly asynchronous
307 | mutating(keyPath: \.onPageWillTransition, value: callback)
308 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:212:18: warning: call to main actor-isolated instance method 'onPageChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
| `- warning: call to main actor-isolated instance method 'onPageChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:313:10: note: calls to instance method 'onPageChanged' from outside of its actor context are implicitly asynchronous
311 | ///
312 | /// - Parameter callback: block to be called when `page` changes
313 | func onPageChanged(_ callback: ((Int) -> Void)?) -> Self {
| `- note: calls to instance method 'onPageChanged' from outside of its actor context are implicitly asynchronous
314 | mutating(keyPath: \.onPageChanged, value: callback)
315 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:211:18: warning: call to main actor-isolated instance method 'itemAspectRatio(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
| `- warning: call to main actor-isolated instance method 'itemAspectRatio(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:276:10: note: calls to instance method 'itemAspectRatio(_:alignment:)' from outside of its actor context are implicitly asynchronous
274 | /// - Note: `value` should be greater than 0
275 | ///
276 | func itemAspectRatio(_ value: CGFloat?, alignment: PositionAlignment = .center) -> Self {
| `- note: calls to instance method 'itemAspectRatio(_:alignment:)' from outside of its actor context are implicitly asynchronous
277 | return mutating(keyPath: \.preferredItemSize, value: nil)
278 | .mutating(keyPath: \.itemAspectRatio, value: value)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:210:18: warning: call to main actor-isolated instance method 'itemSpacing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
208 | .interactive(rotation: shouldRotate)
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
| `- warning: call to main actor-isolated instance method 'itemSpacing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:258:10: note: calls to instance method 'itemSpacing' from outside of its actor context are implicitly asynchronous
256 | ///
257 | /// - Parameter value: spacing between elements
258 | func itemSpacing(_ value: CGFloat) -> Self {
| `- note: calls to instance method 'itemSpacing' from outside of its actor context are implicitly asynchronous
259 | mutating(keyPath: \.itemSpacing, value: value)
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:209:18: warning: call to main actor-isolated instance method 'pageOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
207 | .interactive(opacity: opacityIncrement)
208 | .interactive(rotation: shouldRotate)
209 | .pageOffset(pageOffset)
| `- warning: call to main actor-isolated instance method 'pageOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:251:10: note: calls to instance method 'pageOffset' from outside of its actor context are implicitly asynchronous
249 | ///
250 | /// - Parameter value: manual offset applied to `Pager`
251 | func pageOffset(_ value: Double) -> Self {
| `- note: calls to instance method 'pageOffset' from outside of its actor context are implicitly asynchronous
252 | mutating(keyPath: \.pageOffset, value: value)
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:208:18: warning: call to main actor-isolated instance method 'interactive(rotation:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
208 | .interactive(rotation: shouldRotate)
| `- warning: call to main actor-isolated instance method 'interactive(rotation:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:244:10: note: calls to instance method 'interactive(rotation:)' from outside of its actor context are implicitly asynchronous
242 | ///
243 | /// - Parameter value: `true` if the pages should have a 3D rotation effect
244 | func interactive(rotation shouldRotate: Bool) -> Self {
| `- note: calls to instance method 'interactive(rotation:)' from outside of its actor context are implicitly asynchronous
245 | mutating(keyPath: \.shouldRotate, value: shouldRotate)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:207:18: warning: call to main actor-isolated instance method 'interactive(opacity:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
205 | .alignment(alignment)
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
| `- warning: call to main actor-isolated instance method 'interactive(opacity:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
208 | .interactive(rotation: shouldRotate)
209 | .pageOffset(pageOffset)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:237:10: note: calls to instance method 'interactive(opacity:)' from outside of its actor context are implicitly asynchronous
235 | ///
236 | /// - Note: `increment` must be lower than _1_ and greather than _0_
237 | func interactive(opacity decrement: Double?) -> Self {
| `- note: calls to instance method 'interactive(opacity:)' from outside of its actor context are implicitly asynchronous
238 | mutating(keyPath: \.opacityIncrement, value: decrement)
239 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:206:18: warning: call to main actor-isolated instance method 'interactive(scale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
206 | .interactive(scale: interactiveScale)
| `- warning: call to main actor-isolated instance method 'interactive(scale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
207 | .interactive(opacity: opacityIncrement)
208 | .interactive(rotation: shouldRotate)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:222:10: note: calls to instance method 'interactive(scale:)' from outside of its actor context are implicitly asynchronous
220 | /// - Parameter ratio: shrink ratio applied to unfocsed items
221 | /// - Note: `ratio` must be lower than _1_ and greather than _0_, otherwise it defaults to the previous value
222 | func interactive(scale ratio: CGFloat) -> Self {
| `- note: calls to instance method 'interactive(scale:)' from outside of its actor context are implicitly asynchronous
223 | guard ratio > 0, ratio < 1 else { return self }
224 | return mutating(keyPath: \.interactiveScale, value: ratio)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:205:18: warning: call to main actor-isolated instance method 'alignment' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
203 | .contentLoadingPolicy(contentLoadingPolicy)
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
| `- warning: call to main actor-isolated instance method 'alignment' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:196:10: note: calls to instance method 'alignment' from outside of its actor context are implicitly asynchronous
194 | ///
195 | /// - Parameter value: alignment of the pages inside the scroll
196 | func alignment(_ value: PositionAlignment) -> Self {
| `- note: calls to instance method 'alignment' from outside of its actor context are implicitly asynchronous
197 | mutating(keyPath: \.alignment, value: value)
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:204:18: warning: call to main actor-isolated instance method 'loopPages(_:repeating:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
202 | content: content)
203 | .contentLoadingPolicy(contentLoadingPolicy)
204 | .loopPages(isInifinitePager, repeating: loopingCount)
| `- warning: call to main actor-isolated instance method 'loopPages(_:repeating:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
205 | .alignment(alignment)
206 | .interactive(scale: interactiveScale)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:47:10: note: calls to instance method 'loopPages(_:repeating:)' from outside of its actor context are implicitly asynchronous
45 | /// pages on both the screen and the sides. If your sequence is not large enough, use `count` to
46 | /// repeat it and pass more elements.
47 | func loopPages(_ value: Bool = true, repeating count: UInt = 1) -> Self {
| `- note: calls to instance method 'loopPages(_:repeating:)' from outside of its actor context are implicitly asynchronous
48 | var newData = data
49 | if let id = newData.first?.keyPath {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:203:18: warning: call to main actor-isolated instance method 'contentLoadingPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
201 | id: id,
202 | content: content)
203 | .contentLoadingPolicy(contentLoadingPolicy)
| `- warning: call to main actor-isolated instance method 'contentLoadingPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:35:10: note: calls to instance method 'contentLoadingPolicy' from outside of its actor context are implicitly asynchronous
33 | /// Choose `lazy` to load pages on demand so that the right amount of memory is used. Choose `eager` if
34 | /// `Pager` won't hold many items or if memory isn't an issue.
35 | func contentLoadingPolicy(_ value: ContentLoadingPolicy) -> Self {
| `- note: calls to instance method 'contentLoadingPolicy' from outside of its actor context are implicitly asynchronous
36 | mutating(keyPath: \.contentLoadingPolicy, value: value)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: call to main actor-isolated initializer 'init(size:pagerModel:data:id:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
| `- warning: call to main actor-isolated initializer 'init(size:pagerModel:data:id:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent.swift:173:9: note: calls to initializer 'init(size:pagerModel:data:id:content:)' from outside of its actor context are implicitly asynchronous
171 | /// - Parameter id: KeyPath to identifiable property
172 | /// - Parameter content: Factory method to build new pages
173 | init(size: CGSize, pagerModel: Page, data: [Element], id: KeyPath<Element, ID>, @ViewBuilder content: @escaping (Element) -> PageView) {
| `- note: calls to initializer 'init(size:pagerModel:data:id:content:)' from outside of its actor context are implicitly asynchronous
174 | self.size = size
175 | self.pagerModel = pagerModel
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:231:14: warning: call to main actor-isolated instance method 'dragForwardOnly' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
231 | .dragForwardOnly(dragForwardOnly)
| `- warning: call to main actor-isolated instance method 'dragForwardOnly' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
232 | #else
233 | pagerContent = pagerContent.draggingAnimation(draggingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:79:10: note: calls to instance method 'dragForwardOnly' from outside of its actor context are implicitly asynchronous
77 | /// - Parameter enabled: by default dragForwardOnly is disables so pages can be scrolled in both directions,
78 | /// set to true to disable scrolling backwards
79 | func dragForwardOnly(_ value: Bool = true) -> Self {
| `- note: calls to instance method 'dragForwardOnly' from outside of its actor context are implicitly asynchronous
80 | mutating(keyPath: \.dragForwardOnly, value: value)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:230:14: warning: call to main actor-isolated instance method 'draggingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
| `- warning: call to main actor-isolated instance method 'draggingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
231 | .dragForwardOnly(dragForwardOnly)
232 | #else
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:189:10: note: calls to instance method 'draggingAnimation' from outside of its actor context are implicitly asynchronous
187 | ///
188 | /// - Warning: `spring` animations don't work well. Avoid high responses while dragging as the animation should be short
189 | func draggingAnimation(_ value: DraggingAnimation) -> Self {
| `- note: calls to instance method 'draggingAnimation' from outside of its actor context are implicitly asynchronous
190 | mutating(keyPath: \.draggingAnimation, value: value)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:229:14: warning: call to main actor-isolated instance method 'bounces' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
| `- warning: call to main actor-isolated instance method 'bounces' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
230 | .draggingAnimation(draggingAnimation)
231 | .dragForwardOnly(dragForwardOnly)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:135:10: note: calls to instance method 'bounces' from outside of its actor context are implicitly asynchronous
133 |
134 | /// Sets whether `Pager` should bounce or not
135 | func bounces(_ value: Bool) -> Self {
| `- note: calls to instance method 'bounces' from outside of its actor context are implicitly asynchronous
136 | mutating(keyPath: \.bounces, value: value)
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:228:14: warning: call to main actor-isolated instance method 'onDraggingEnded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
| `- warning: call to main actor-isolated instance method 'onDraggingEnded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:156:10: note: calls to instance method 'onDraggingEnded' from outside of its actor context are implicitly asynchronous
154 | ///
155 | /// - Parameter callback: block to be called when dragging ends.
156 | func onDraggingEnded(_ callback: (() -> Void)?) -> Self {
| `- note: calls to instance method 'onDraggingEnded' from outside of its actor context are implicitly asynchronous
157 | mutating(keyPath: \.onDraggingEnded, value: callback)
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:227:14: warning: call to main actor-isolated instance method 'onDraggingChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
| `- warning: call to main actor-isolated instance method 'onDraggingChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:149:10: note: calls to instance method 'onDraggingChanged' from outside of its actor context are implicitly asynchronous
147 | ///
148 | /// - Parameter callback: block to be called when dragging changes. `pageInrement` is passed as argument
149 | func onDraggingChanged(_ callback: ((Double) -> Void)?) -> Self {
| `- note: calls to instance method 'onDraggingChanged' from outside of its actor context are implicitly asynchronous
150 | mutating(keyPath: \.onDraggingChanged, value: callback)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:226:14: warning: call to main actor-isolated instance method 'onDraggingBegan' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
| `- warning: call to main actor-isolated instance method 'onDraggingBegan' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:142:10: note: calls to instance method 'onDraggingBegan' from outside of its actor context are implicitly asynchronous
140 | ///
141 | /// - Parameter callback: block to be called when dragging begins
142 | func onDraggingBegan(_ callback: (() -> Void)?) -> Self {
| `- note: calls to instance method 'onDraggingBegan' from outside of its actor context are implicitly asynchronous
143 | mutating(keyPath: \.onDraggingBegan, value: callback)
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:225:14: warning: call to main actor-isolated instance method 'sensitivity' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
| `- warning: call to main actor-isolated instance method 'sensitivity' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:98:10: note: calls to instance method 'sensitivity' from outside of its actor context are implicitly asynchronous
96 | ///
97 | /// - Parameter value: sensitivity to be applied when paginating
98 | func sensitivity(_ value: PaginationSensitivity) -> Self {
| `- note: calls to instance method 'sensitivity' from outside of its actor context are implicitly asynchronous
99 | mutating(keyPath: \.sensitivity, value: value)
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:224:14: warning: call to main actor-isolated instance method 'delaysTouches' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
| `- warning: call to main actor-isolated instance method 'delaysTouches' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:105:10: note: calls to instance method 'delaysTouches' from outside of its actor context are implicitly asynchronous
103 | ///
104 | /// - Parameter value: whether or not touches should be delayed
105 | func delaysTouches(_ value: Bool) -> Self {
| `- note: calls to instance method 'delaysTouches' from outside of its actor context are implicitly asynchronous
106 | mutating(keyPath: \.minimumDistance, value: value ? 15 : 0)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:223:14: warning: call to main actor-isolated instance method 'pagingPriority' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
221 | .swipeInteractionArea(swipeInteractionArea)
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
| `- warning: call to main actor-isolated instance method 'pagingPriority' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:123:10: note: calls to instance method 'pagingPriority' from outside of its actor context are implicitly asynchronous
121 | /// For instance, a `NavigationLink` or a `MagnificationGesture` inside a page can "break" the swiping in `Pager`.
122 | /// To solve this issue, use `pagingPriority(.simultaneous)` to let the touch be received for both the page content and `Pager`.
123 | func pagingPriority(_ value: GesturePriority) -> Self {
| `- note: calls to instance method 'pagingPriority' from outside of its actor context are implicitly asynchronous
124 | mutating(keyPath: \.gesturePriority, value: value)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:222:14: warning: call to main actor-isolated instance method 'allowsDragging' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
220 | pagerContent = pagerContent
221 | .swipeInteractionArea(swipeInteractionArea)
222 | .allowsDragging(allowsDragging)
| `- warning: call to main actor-isolated instance method 'allowsDragging' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:112:10: note: calls to instance method 'allowsDragging' from outside of its actor context are implicitly asynchronous
110 | ///
111 | /// - Parameter value: `true` if dragging is allowed, `false`, otherwise. Defaults to `true`
112 | func allowsDragging(_ value: Bool = true) -> Self {
| `- note: calls to instance method 'allowsDragging' from outside of its actor context are implicitly asynchronous
113 | mutating(keyPath: \.allowsDragging, value: value)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:221:14: warning: call to main actor-isolated instance method 'swipeInteractionArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
219 | #if !os(tvOS)
220 | pagerContent = pagerContent
221 | .swipeInteractionArea(swipeInteractionArea)
| `- warning: call to main actor-isolated instance method 'swipeInteractionArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:130:10: note: calls to instance method 'swipeInteractionArea' from outside of its actor context are implicitly asynchronous
128 | ///
129 | /// - Parameter value: area of interaction
130 | func swipeInteractionArea(_ value: SwipeInteractionArea) -> Self {
| `- note: calls to instance method 'swipeInteractionArea' from outside of its actor context are implicitly asynchronous
131 | mutating(keyPath: \.swipeInteractionArea, value: value)
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:244:64: warning: call to main actor-isolated instance method 'multiplePagination()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
242 | #endif
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
| `- warning: call to main actor-isolated instance method 'multiplePagination()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
246 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:24:10: note: calls to instance method 'multiplePagination()' from outside of its actor context are implicitly asynchronous
22 | ///
23 | /// - Note: This will change `contentLoadingPolicy` to `.eager`. Modifying this value will result in an unpredictable UI.
24 | func multiplePagination() -> Self {
| `- note: calls to instance method 'multiplePagination()' from outside of its actor context are implicitly asynchronous
25 | mutating(keyPath: \.allowsMultiplePagination, value: true)
26 | .mutating(keyPath: \.contentLoadingPolicy, value: .eager)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:52: warning: call to main actor-isolated instance method 'horizontal' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| `- warning: call to main actor-isolated instance method 'horizontal' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:203:10: note: calls to instance method 'horizontal' from outside of its actor context are implicitly asynchronous
201 | ///
202 | /// - Parameter swipeDirection: direction of the swipe. Defaults to `.startToEnd`
203 | func horizontal(_ swipeDirection: HorizontalSwipeDirection = .startToEnd) -> Self {
| `- note: calls to instance method 'horizontal' from outside of its actor context are implicitly asynchronous
204 | let scrollDirectionAngle: Angle = swipeDirection == .startToEnd ? .zero : Angle(degrees: 180)
205 | return mutating(keyPath: \.isHorizontal, value: true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:104: warning: call to main actor-isolated instance method 'vertical' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| `- warning: call to main actor-isolated instance method 'vertical' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:212:10: note: calls to instance method 'vertical' from outside of its actor context are implicitly asynchronous
210 | ///
211 | /// - Parameter swipeDirection: direction of the swipe. Defaults to `.topToBottom`
212 | func vertical(_ swipeDirection: VerticalSwipeDirection = .topToBottom) -> Self {
| `- note: calls to instance method 'vertical' from outside of its actor context are implicitly asynchronous
213 | let scrollDirectionAngle: Angle = swipeDirection == .topToBottom ? .zero : Angle(degrees: 180)
214 | return mutating(keyPath: \.isHorizontal, value: false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:248:41: warning: call to main actor-isolated instance method 'preferredItemSize(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
246 |
247 | if let preferredItemSize = preferredItemSize {
248 | pagerContent = pagerContent.preferredItemSize(preferredItemSize, alignment: itemAlignment)
| `- warning: call to main actor-isolated instance method 'preferredItemSize(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:288:10: note: calls to instance method 'preferredItemSize(_:alignment:)' from outside of its actor context are implicitly asynchronous
286 | ///
287 | /// - Note: This will invalidate previous values of `padding` and `itemAspectRatio`
288 | func preferredItemSize(_ value: CGSize, alignment: PositionAlignment = .center) -> Self {
| `- note: calls to instance method 'preferredItemSize(_:alignment:)' from outside of its actor context are implicitly asynchronous
289 | mutating(keyPath: \.sideInsets, value: 0)
290 | .mutating(keyPath: \.itemAspectRatio, value: nil)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.pagerModel' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.pagerModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.pagerModel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.data' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.data' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.data' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.id' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.id' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.content' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.content' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:203:18: warning: sending 'self.contentLoadingPolicy' risks causing data races; this is an error in the Swift 6 language mode
201 | id: id,
202 | content: content)
203 | .contentLoadingPolicy(contentLoadingPolicy)
| |- warning: sending 'self.contentLoadingPolicy' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.contentLoadingPolicy' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:205:18: warning: sending 'self.alignment' risks causing data races; this is an error in the Swift 6 language mode
203 | .contentLoadingPolicy(contentLoadingPolicy)
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
| |- warning: sending 'self.alignment' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.alignment' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:211:18: warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
| |- warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.itemAlignment' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:212:18: warning: sending 'self.onPageChanged' risks causing data races; this is an error in the Swift 6 language mode
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
| |- warning: sending 'self.onPageChanged' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onPageChanged' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:213:18: warning: sending 'self.onPageWillTransition' risks causing data races; this is an error in the Swift 6 language mode
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
| |- warning: sending 'self.onPageWillTransition' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onPageWillTransition' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:214:18: warning: sending 'self.onPageWillChange' risks causing data races; this is an error in the Swift 6 language mode
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
| |- warning: sending 'self.onPageWillChange' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onPageWillChange' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:216:18: warning: sending 'self.pagingAnimation' risks causing data races; this is an error in the Swift 6 language mode
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
| |- warning: sending 'self.pagingAnimation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.pagingAnimation' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
217 | .partialPagination(pageRatio)
218 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:221:14: warning: sending 'self.swipeInteractionArea' risks causing data races; this is an error in the Swift 6 language mode
219 | #if !os(tvOS)
220 | pagerContent = pagerContent
221 | .swipeInteractionArea(swipeInteractionArea)
| |- warning: sending 'self.swipeInteractionArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.swipeInteractionArea' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:223:14: warning: sending 'self.gesturePriority' risks causing data races; this is an error in the Swift 6 language mode
221 | .swipeInteractionArea(swipeInteractionArea)
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
| |- warning: sending 'self.gesturePriority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.gesturePriority' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:225:14: warning: sending 'self.sensitivity' risks causing data races; this is an error in the Swift 6 language mode
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
| |- warning: sending 'self.sensitivity' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.sensitivity' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:226:14: warning: sending 'self.onDraggingBegan' risks causing data races; this is an error in the Swift 6 language mode
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
| |- warning: sending 'self.onDraggingBegan' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onDraggingBegan' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:227:14: warning: sending 'self.onDraggingChanged' risks causing data races; this is an error in the Swift 6 language mode
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
| |- warning: sending 'self.onDraggingChanged' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onDraggingChanged' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:228:14: warning: sending 'self.onDraggingEnded' risks causing data races; this is an error in the Swift 6 language mode
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
| |- warning: sending 'self.onDraggingEnded' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onDraggingEnded' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:230:14: warning: sending 'self.draggingAnimation' risks causing data races; this is an error in the Swift 6 language mode
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
| |- warning: sending 'self.draggingAnimation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.draggingAnimation' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
231 | .dragForwardOnly(dragForwardOnly)
232 | #else
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:52: warning: sending 'self.horizontalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| |- warning: sending 'self.horizontalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.horizontalSwipeDirection' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:104: warning: sending 'self.verticalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| |- warning: sending 'self.verticalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.verticalSwipeDirection' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:248:41: warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
246 |
247 | if let preferredItemSize = preferredItemSize {
248 | pagerContent = pagerContent.preferredItemSize(preferredItemSize, alignment: itemAlignment)
| |- warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.itemAlignment' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
249 | }
250 |
[4/21] Compiling SwiftUIPager Pager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:39:23: warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | /// Standard animation. Single pagination `Pager` defaults to this value. Ease-out, 0.35 seconds.
39 | public static var standard: PagingAnimation = .standard(duration: 0.35)
| |- warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standard' 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
40 |
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PaginationSensitivity.swift:28:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// The shift relative to container size needs to be greater than or equal to 50%
28 | public static var `default`: Self = .medium
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
29 |
30 | var value: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/ContentLoadingPolicy.swift:26:16: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Default policy, a.k.a, `lazy(recyclingRatio: 5)`
26 | static var `default`: ContentLoadingPolicy = .lazy(recyclingRatio: 5)
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/GesturePriority.swift:24:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// Defines a set of priorities to interact with gestures
12 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | public enum GesturePriority {
| `- note: consider making enum 'GesturePriority' conform to the 'Sendable' protocol
14 | /// Refers to `highPriorityGesture` modifier
15 | case high
:
22 |
23 | /// Default value, a.k.a, `normal`
24 | static let `default`: GesturePriority = .normal
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:217:18: warning: call to main actor-isolated instance method 'partialPagination' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
217 | .partialPagination(pageRatio)
| `- warning: call to main actor-isolated instance method 'partialPagination' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
218 |
219 | #if !os(tvOS)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:69:10: note: calls to instance method 'partialPagination' from outside of its actor context are implicitly asynchronous
67 | ///
68 | /// For instance, setting this `ratio` to `0.5` will make `Pager` reveal half of the next item tops.
69 | func partialPagination(_ ratio: CGFloat) -> Self {
| `- note: calls to instance method 'partialPagination' from outside of its actor context are implicitly asynchronous
70 | mutating(keyPath: \.pageRatio, value: ratio)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:216:18: warning: call to main actor-isolated instance method 'pagingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
| `- warning: call to main actor-isolated instance method 'pagingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
217 | .partialPagination(pageRatio)
218 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:17:10: note: calls to instance method 'pagingAnimation' from outside of its actor context are implicitly asynchronous
15 | ///
16 | /// - Parameter value: callback to get an animation based on the result of dragging
17 | func pagingAnimation(_ value: ((Pager.DragResult) -> PagingAnimation)?) -> Self {
| `- note: calls to instance method 'pagingAnimation' from outside of its actor context are implicitly asynchronous
18 | mutating(keyPath: \.pagingAnimation, value: value)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:215:18: warning: call to main actor-isolated instance method 'padding' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
| `- warning: call to main actor-isolated instance method 'padding' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | .pagingAnimation(pagingAnimation)
217 | .partialPagination(pageRatio)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:320:10: note: calls to instance method 'padding' from outside of its actor context are implicitly asynchronous
318 | ///
319 | /// - Parameter length: padding
320 | func padding(_ length: CGFloat) -> Self {
| `- note: calls to instance method 'padding' from outside of its actor context are implicitly asynchronous
321 | mutating(keyPath: \.sideInsets, value: length)
322 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:214:18: warning: call to main actor-isolated instance method 'onPageWillChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
| `- warning: call to main actor-isolated instance method 'onPageWillChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:298:10: note: calls to instance method 'onPageWillChange' from outside of its actor context are implicitly asynchronous
296 | ///
297 | /// - Parameter callback: block to be called when `page` will change
298 | func onPageWillChange(_ callback: ((Int) -> Void)?) -> Self {
| `- note: calls to instance method 'onPageWillChange' from outside of its actor context are implicitly asynchronous
299 | mutating(keyPath: \.onPageWillChange, value: callback)
300 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:213:18: warning: call to main actor-isolated instance method 'onPageWillTransition' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
| `- warning: call to main actor-isolated instance method 'onPageWillTransition' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:306:10: note: calls to instance method 'onPageWillTransition' from outside of its actor context are implicitly asynchronous
304 | ///
305 | /// - Parameter callback: block to be called when the user ends dragging and a transition will occur
306 | func onPageWillTransition(_ callback: ((Result<PageTransition, PageTransitionError>) -> Void)?) -> Self {
| `- note: calls to instance method 'onPageWillTransition' from outside of its actor context are implicitly asynchronous
307 | mutating(keyPath: \.onPageWillTransition, value: callback)
308 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:212:18: warning: call to main actor-isolated instance method 'onPageChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
| `- warning: call to main actor-isolated instance method 'onPageChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:313:10: note: calls to instance method 'onPageChanged' from outside of its actor context are implicitly asynchronous
311 | ///
312 | /// - Parameter callback: block to be called when `page` changes
313 | func onPageChanged(_ callback: ((Int) -> Void)?) -> Self {
| `- note: calls to instance method 'onPageChanged' from outside of its actor context are implicitly asynchronous
314 | mutating(keyPath: \.onPageChanged, value: callback)
315 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:211:18: warning: call to main actor-isolated instance method 'itemAspectRatio(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
| `- warning: call to main actor-isolated instance method 'itemAspectRatio(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:276:10: note: calls to instance method 'itemAspectRatio(_:alignment:)' from outside of its actor context are implicitly asynchronous
274 | /// - Note: `value` should be greater than 0
275 | ///
276 | func itemAspectRatio(_ value: CGFloat?, alignment: PositionAlignment = .center) -> Self {
| `- note: calls to instance method 'itemAspectRatio(_:alignment:)' from outside of its actor context are implicitly asynchronous
277 | return mutating(keyPath: \.preferredItemSize, value: nil)
278 | .mutating(keyPath: \.itemAspectRatio, value: value)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:210:18: warning: call to main actor-isolated instance method 'itemSpacing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
208 | .interactive(rotation: shouldRotate)
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
| `- warning: call to main actor-isolated instance method 'itemSpacing' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:258:10: note: calls to instance method 'itemSpacing' from outside of its actor context are implicitly asynchronous
256 | ///
257 | /// - Parameter value: spacing between elements
258 | func itemSpacing(_ value: CGFloat) -> Self {
| `- note: calls to instance method 'itemSpacing' from outside of its actor context are implicitly asynchronous
259 | mutating(keyPath: \.itemSpacing, value: value)
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:209:18: warning: call to main actor-isolated instance method 'pageOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
207 | .interactive(opacity: opacityIncrement)
208 | .interactive(rotation: shouldRotate)
209 | .pageOffset(pageOffset)
| `- warning: call to main actor-isolated instance method 'pageOffset' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:251:10: note: calls to instance method 'pageOffset' from outside of its actor context are implicitly asynchronous
249 | ///
250 | /// - Parameter value: manual offset applied to `Pager`
251 | func pageOffset(_ value: Double) -> Self {
| `- note: calls to instance method 'pageOffset' from outside of its actor context are implicitly asynchronous
252 | mutating(keyPath: \.pageOffset, value: value)
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:208:18: warning: call to main actor-isolated instance method 'interactive(rotation:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
208 | .interactive(rotation: shouldRotate)
| `- warning: call to main actor-isolated instance method 'interactive(rotation:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:244:10: note: calls to instance method 'interactive(rotation:)' from outside of its actor context are implicitly asynchronous
242 | ///
243 | /// - Parameter value: `true` if the pages should have a 3D rotation effect
244 | func interactive(rotation shouldRotate: Bool) -> Self {
| `- note: calls to instance method 'interactive(rotation:)' from outside of its actor context are implicitly asynchronous
245 | mutating(keyPath: \.shouldRotate, value: shouldRotate)
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:207:18: warning: call to main actor-isolated instance method 'interactive(opacity:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
205 | .alignment(alignment)
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
| `- warning: call to main actor-isolated instance method 'interactive(opacity:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
208 | .interactive(rotation: shouldRotate)
209 | .pageOffset(pageOffset)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:237:10: note: calls to instance method 'interactive(opacity:)' from outside of its actor context are implicitly asynchronous
235 | ///
236 | /// - Note: `increment` must be lower than _1_ and greather than _0_
237 | func interactive(opacity decrement: Double?) -> Self {
| `- note: calls to instance method 'interactive(opacity:)' from outside of its actor context are implicitly asynchronous
238 | mutating(keyPath: \.opacityIncrement, value: decrement)
239 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:206:18: warning: call to main actor-isolated instance method 'interactive(scale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
206 | .interactive(scale: interactiveScale)
| `- warning: call to main actor-isolated instance method 'interactive(scale:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
207 | .interactive(opacity: opacityIncrement)
208 | .interactive(rotation: shouldRotate)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:222:10: note: calls to instance method 'interactive(scale:)' from outside of its actor context are implicitly asynchronous
220 | /// - Parameter ratio: shrink ratio applied to unfocsed items
221 | /// - Note: `ratio` must be lower than _1_ and greather than _0_, otherwise it defaults to the previous value
222 | func interactive(scale ratio: CGFloat) -> Self {
| `- note: calls to instance method 'interactive(scale:)' from outside of its actor context are implicitly asynchronous
223 | guard ratio > 0, ratio < 1 else { return self }
224 | return mutating(keyPath: \.interactiveScale, value: ratio)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:205:18: warning: call to main actor-isolated instance method 'alignment' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
203 | .contentLoadingPolicy(contentLoadingPolicy)
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
| `- warning: call to main actor-isolated instance method 'alignment' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:196:10: note: calls to instance method 'alignment' from outside of its actor context are implicitly asynchronous
194 | ///
195 | /// - Parameter value: alignment of the pages inside the scroll
196 | func alignment(_ value: PositionAlignment) -> Self {
| `- note: calls to instance method 'alignment' from outside of its actor context are implicitly asynchronous
197 | mutating(keyPath: \.alignment, value: value)
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:204:18: warning: call to main actor-isolated instance method 'loopPages(_:repeating:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
202 | content: content)
203 | .contentLoadingPolicy(contentLoadingPolicy)
204 | .loopPages(isInifinitePager, repeating: loopingCount)
| `- warning: call to main actor-isolated instance method 'loopPages(_:repeating:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
205 | .alignment(alignment)
206 | .interactive(scale: interactiveScale)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:47:10: note: calls to instance method 'loopPages(_:repeating:)' from outside of its actor context are implicitly asynchronous
45 | /// pages on both the screen and the sides. If your sequence is not large enough, use `count` to
46 | /// repeat it and pass more elements.
47 | func loopPages(_ value: Bool = true, repeating count: UInt = 1) -> Self {
| `- note: calls to instance method 'loopPages(_:repeating:)' from outside of its actor context are implicitly asynchronous
48 | var newData = data
49 | if let id = newData.first?.keyPath {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:203:18: warning: call to main actor-isolated instance method 'contentLoadingPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
201 | id: id,
202 | content: content)
203 | .contentLoadingPolicy(contentLoadingPolicy)
| `- warning: call to main actor-isolated instance method 'contentLoadingPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:35:10: note: calls to instance method 'contentLoadingPolicy' from outside of its actor context are implicitly asynchronous
33 | /// Choose `lazy` to load pages on demand so that the right amount of memory is used. Choose `eager` if
34 | /// `Pager` won't hold many items or if memory isn't an issue.
35 | func contentLoadingPolicy(_ value: ContentLoadingPolicy) -> Self {
| `- note: calls to instance method 'contentLoadingPolicy' from outside of its actor context are implicitly asynchronous
36 | mutating(keyPath: \.contentLoadingPolicy, value: value)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: call to main actor-isolated initializer 'init(size:pagerModel:data:id:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
| `- warning: call to main actor-isolated initializer 'init(size:pagerModel:data:id:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent.swift:173:9: note: calls to initializer 'init(size:pagerModel:data:id:content:)' from outside of its actor context are implicitly asynchronous
171 | /// - Parameter id: KeyPath to identifiable property
172 | /// - Parameter content: Factory method to build new pages
173 | init(size: CGSize, pagerModel: Page, data: [Element], id: KeyPath<Element, ID>, @ViewBuilder content: @escaping (Element) -> PageView) {
| `- note: calls to initializer 'init(size:pagerModel:data:id:content:)' from outside of its actor context are implicitly asynchronous
174 | self.size = size
175 | self.pagerModel = pagerModel
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:231:14: warning: call to main actor-isolated instance method 'dragForwardOnly' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
231 | .dragForwardOnly(dragForwardOnly)
| `- warning: call to main actor-isolated instance method 'dragForwardOnly' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
232 | #else
233 | pagerContent = pagerContent.draggingAnimation(draggingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:79:10: note: calls to instance method 'dragForwardOnly' from outside of its actor context are implicitly asynchronous
77 | /// - Parameter enabled: by default dragForwardOnly is disables so pages can be scrolled in both directions,
78 | /// set to true to disable scrolling backwards
79 | func dragForwardOnly(_ value: Bool = true) -> Self {
| `- note: calls to instance method 'dragForwardOnly' from outside of its actor context are implicitly asynchronous
80 | mutating(keyPath: \.dragForwardOnly, value: value)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:230:14: warning: call to main actor-isolated instance method 'draggingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
| `- warning: call to main actor-isolated instance method 'draggingAnimation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
231 | .dragForwardOnly(dragForwardOnly)
232 | #else
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:189:10: note: calls to instance method 'draggingAnimation' from outside of its actor context are implicitly asynchronous
187 | ///
188 | /// - Warning: `spring` animations don't work well. Avoid high responses while dragging as the animation should be short
189 | func draggingAnimation(_ value: DraggingAnimation) -> Self {
| `- note: calls to instance method 'draggingAnimation' from outside of its actor context are implicitly asynchronous
190 | mutating(keyPath: \.draggingAnimation, value: value)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:229:14: warning: call to main actor-isolated instance method 'bounces' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
| `- warning: call to main actor-isolated instance method 'bounces' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
230 | .draggingAnimation(draggingAnimation)
231 | .dragForwardOnly(dragForwardOnly)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:135:10: note: calls to instance method 'bounces' from outside of its actor context are implicitly asynchronous
133 |
134 | /// Sets whether `Pager` should bounce or not
135 | func bounces(_ value: Bool) -> Self {
| `- note: calls to instance method 'bounces' from outside of its actor context are implicitly asynchronous
136 | mutating(keyPath: \.bounces, value: value)
137 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:228:14: warning: call to main actor-isolated instance method 'onDraggingEnded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
| `- warning: call to main actor-isolated instance method 'onDraggingEnded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:156:10: note: calls to instance method 'onDraggingEnded' from outside of its actor context are implicitly asynchronous
154 | ///
155 | /// - Parameter callback: block to be called when dragging ends.
156 | func onDraggingEnded(_ callback: (() -> Void)?) -> Self {
| `- note: calls to instance method 'onDraggingEnded' from outside of its actor context are implicitly asynchronous
157 | mutating(keyPath: \.onDraggingEnded, value: callback)
158 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:227:14: warning: call to main actor-isolated instance method 'onDraggingChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
| `- warning: call to main actor-isolated instance method 'onDraggingChanged' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:149:10: note: calls to instance method 'onDraggingChanged' from outside of its actor context are implicitly asynchronous
147 | ///
148 | /// - Parameter callback: block to be called when dragging changes. `pageInrement` is passed as argument
149 | func onDraggingChanged(_ callback: ((Double) -> Void)?) -> Self {
| `- note: calls to instance method 'onDraggingChanged' from outside of its actor context are implicitly asynchronous
150 | mutating(keyPath: \.onDraggingChanged, value: callback)
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:226:14: warning: call to main actor-isolated instance method 'onDraggingBegan' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
| `- warning: call to main actor-isolated instance method 'onDraggingBegan' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:142:10: note: calls to instance method 'onDraggingBegan' from outside of its actor context are implicitly asynchronous
140 | ///
141 | /// - Parameter callback: block to be called when dragging begins
142 | func onDraggingBegan(_ callback: (() -> Void)?) -> Self {
| `- note: calls to instance method 'onDraggingBegan' from outside of its actor context are implicitly asynchronous
143 | mutating(keyPath: \.onDraggingBegan, value: callback)
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:225:14: warning: call to main actor-isolated instance method 'sensitivity' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
| `- warning: call to main actor-isolated instance method 'sensitivity' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:98:10: note: calls to instance method 'sensitivity' from outside of its actor context are implicitly asynchronous
96 | ///
97 | /// - Parameter value: sensitivity to be applied when paginating
98 | func sensitivity(_ value: PaginationSensitivity) -> Self {
| `- note: calls to instance method 'sensitivity' from outside of its actor context are implicitly asynchronous
99 | mutating(keyPath: \.sensitivity, value: value)
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:224:14: warning: call to main actor-isolated instance method 'delaysTouches' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
| `- warning: call to main actor-isolated instance method 'delaysTouches' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:105:10: note: calls to instance method 'delaysTouches' from outside of its actor context are implicitly asynchronous
103 | ///
104 | /// - Parameter value: whether or not touches should be delayed
105 | func delaysTouches(_ value: Bool) -> Self {
| `- note: calls to instance method 'delaysTouches' from outside of its actor context are implicitly asynchronous
106 | mutating(keyPath: \.minimumDistance, value: value ? 15 : 0)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:223:14: warning: call to main actor-isolated instance method 'pagingPriority' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
221 | .swipeInteractionArea(swipeInteractionArea)
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
| `- warning: call to main actor-isolated instance method 'pagingPriority' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:123:10: note: calls to instance method 'pagingPriority' from outside of its actor context are implicitly asynchronous
121 | /// For instance, a `NavigationLink` or a `MagnificationGesture` inside a page can "break" the swiping in `Pager`.
122 | /// To solve this issue, use `pagingPriority(.simultaneous)` to let the touch be received for both the page content and `Pager`.
123 | func pagingPriority(_ value: GesturePriority) -> Self {
| `- note: calls to instance method 'pagingPriority' from outside of its actor context are implicitly asynchronous
124 | mutating(keyPath: \.gesturePriority, value: value)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:222:14: warning: call to main actor-isolated instance method 'allowsDragging' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
220 | pagerContent = pagerContent
221 | .swipeInteractionArea(swipeInteractionArea)
222 | .allowsDragging(allowsDragging)
| `- warning: call to main actor-isolated instance method 'allowsDragging' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:112:10: note: calls to instance method 'allowsDragging' from outside of its actor context are implicitly asynchronous
110 | ///
111 | /// - Parameter value: `true` if dragging is allowed, `false`, otherwise. Defaults to `true`
112 | func allowsDragging(_ value: Bool = true) -> Self {
| `- note: calls to instance method 'allowsDragging' from outside of its actor context are implicitly asynchronous
113 | mutating(keyPath: \.allowsDragging, value: value)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:221:14: warning: call to main actor-isolated instance method 'swipeInteractionArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
219 | #if !os(tvOS)
220 | pagerContent = pagerContent
221 | .swipeInteractionArea(swipeInteractionArea)
| `- warning: call to main actor-isolated instance method 'swipeInteractionArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:130:10: note: calls to instance method 'swipeInteractionArea' from outside of its actor context are implicitly asynchronous
128 | ///
129 | /// - Parameter value: area of interaction
130 | func swipeInteractionArea(_ value: SwipeInteractionArea) -> Self {
| `- note: calls to instance method 'swipeInteractionArea' from outside of its actor context are implicitly asynchronous
131 | mutating(keyPath: \.swipeInteractionArea, value: value)
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:244:64: warning: call to main actor-isolated instance method 'multiplePagination()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
242 | #endif
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
| `- warning: call to main actor-isolated instance method 'multiplePagination()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
246 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:24:10: note: calls to instance method 'multiplePagination()' from outside of its actor context are implicitly asynchronous
22 | ///
23 | /// - Note: This will change `contentLoadingPolicy` to `.eager`. Modifying this value will result in an unpredictable UI.
24 | func multiplePagination() -> Self {
| `- note: calls to instance method 'multiplePagination()' from outside of its actor context are implicitly asynchronous
25 | mutating(keyPath: \.allowsMultiplePagination, value: true)
26 | .mutating(keyPath: \.contentLoadingPolicy, value: .eager)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:52: warning: call to main actor-isolated instance method 'horizontal' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| `- warning: call to main actor-isolated instance method 'horizontal' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:203:10: note: calls to instance method 'horizontal' from outside of its actor context are implicitly asynchronous
201 | ///
202 | /// - Parameter swipeDirection: direction of the swipe. Defaults to `.startToEnd`
203 | func horizontal(_ swipeDirection: HorizontalSwipeDirection = .startToEnd) -> Self {
| `- note: calls to instance method 'horizontal' from outside of its actor context are implicitly asynchronous
204 | let scrollDirectionAngle: Angle = swipeDirection == .startToEnd ? .zero : Angle(degrees: 180)
205 | return mutating(keyPath: \.isHorizontal, value: true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:104: warning: call to main actor-isolated instance method 'vertical' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| `- warning: call to main actor-isolated instance method 'vertical' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:212:10: note: calls to instance method 'vertical' from outside of its actor context are implicitly asynchronous
210 | ///
211 | /// - Parameter swipeDirection: direction of the swipe. Defaults to `.topToBottom`
212 | func vertical(_ swipeDirection: VerticalSwipeDirection = .topToBottom) -> Self {
| `- note: calls to instance method 'vertical' from outside of its actor context are implicitly asynchronous
213 | let scrollDirectionAngle: Angle = swipeDirection == .topToBottom ? .zero : Angle(degrees: 180)
214 | return mutating(keyPath: \.isHorizontal, value: false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:248:41: warning: call to main actor-isolated instance method 'preferredItemSize(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | }
195 |
196 | func content(for size: CGSize) -> PagerContent {
| `- note: add '@MainActor' to make instance method 'content(for:)' part of global actor 'MainActor'
197 | var pagerContent =
198 | PagerContent(size: size,
:
246 |
247 | if let preferredItemSize = preferredItemSize {
248 | pagerContent = pagerContent.preferredItemSize(preferredItemSize, alignment: itemAlignment)
| `- warning: call to main actor-isolated instance method 'preferredItemSize(_:alignment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent+Buildable.swift:288:10: note: calls to instance method 'preferredItemSize(_:alignment:)' from outside of its actor context are implicitly asynchronous
286 | ///
287 | /// - Note: This will invalidate previous values of `padding` and `itemAspectRatio`
288 | func preferredItemSize(_ value: CGSize, alignment: PositionAlignment = .center) -> Self {
| `- note: calls to instance method 'preferredItemSize(_:alignment:)' from outside of its actor context are implicitly asynchronous
289 | mutating(keyPath: \.sideInsets, value: 0)
290 | .mutating(keyPath: \.itemAspectRatio, value: nil)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.pagerModel' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.pagerModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.pagerModel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.data' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.data' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.data' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.id' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.id' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:198:13: warning: sending 'self.content' risks causing data races; this is an error in the Swift 6 language mode
196 | func content(for size: CGSize) -> PagerContent {
197 | var pagerContent =
198 | PagerContent(size: size,
| |- warning: sending 'self.content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.content' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
199 | pagerModel: pagerModel,
200 | data: data,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:203:18: warning: sending 'self.contentLoadingPolicy' risks causing data races; this is an error in the Swift 6 language mode
201 | id: id,
202 | content: content)
203 | .contentLoadingPolicy(contentLoadingPolicy)
| |- warning: sending 'self.contentLoadingPolicy' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.contentLoadingPolicy' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:205:18: warning: sending 'self.alignment' risks causing data races; this is an error in the Swift 6 language mode
203 | .contentLoadingPolicy(contentLoadingPolicy)
204 | .loopPages(isInifinitePager, repeating: loopingCount)
205 | .alignment(alignment)
| |- warning: sending 'self.alignment' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.alignment' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
206 | .interactive(scale: interactiveScale)
207 | .interactive(opacity: opacityIncrement)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:211:18: warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
209 | .pageOffset(pageOffset)
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
| |- warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.itemAlignment' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:212:18: warning: sending 'self.onPageChanged' risks causing data races; this is an error in the Swift 6 language mode
210 | .itemSpacing(itemSpacing)
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
| |- warning: sending 'self.onPageChanged' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onPageChanged' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:213:18: warning: sending 'self.onPageWillTransition' risks causing data races; this is an error in the Swift 6 language mode
211 | .itemAspectRatio(itemAspectRatio, alignment: itemAlignment)
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
| |- warning: sending 'self.onPageWillTransition' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onPageWillTransition' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:214:18: warning: sending 'self.onPageWillChange' risks causing data races; this is an error in the Swift 6 language mode
212 | .onPageChanged(onPageChanged)
213 | .onPageWillTransition(onPageWillTransition)
214 | .onPageWillChange(onPageWillChange)
| |- warning: sending 'self.onPageWillChange' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onPageWillChange' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:216:18: warning: sending 'self.pagingAnimation' risks causing data races; this is an error in the Swift 6 language mode
214 | .onPageWillChange(onPageWillChange)
215 | .padding(sideInsets)
216 | .pagingAnimation(pagingAnimation)
| |- warning: sending 'self.pagingAnimation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.pagingAnimation' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
217 | .partialPagination(pageRatio)
218 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:221:14: warning: sending 'self.swipeInteractionArea' risks causing data races; this is an error in the Swift 6 language mode
219 | #if !os(tvOS)
220 | pagerContent = pagerContent
221 | .swipeInteractionArea(swipeInteractionArea)
| |- warning: sending 'self.swipeInteractionArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.swipeInteractionArea' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:223:14: warning: sending 'self.gesturePriority' risks causing data races; this is an error in the Swift 6 language mode
221 | .swipeInteractionArea(swipeInteractionArea)
222 | .allowsDragging(allowsDragging)
223 | .pagingPriority(gesturePriority)
| |- warning: sending 'self.gesturePriority' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.gesturePriority' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:225:14: warning: sending 'self.sensitivity' risks causing data races; this is an error in the Swift 6 language mode
223 | .pagingPriority(gesturePriority)
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
| |- warning: sending 'self.sensitivity' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.sensitivity' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:226:14: warning: sending 'self.onDraggingBegan' risks causing data races; this is an error in the Swift 6 language mode
224 | .delaysTouches(delaysTouches)
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
| |- warning: sending 'self.onDraggingBegan' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onDraggingBegan' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:227:14: warning: sending 'self.onDraggingChanged' risks causing data races; this is an error in the Swift 6 language mode
225 | .sensitivity(sensitivity)
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
| |- warning: sending 'self.onDraggingChanged' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onDraggingChanged' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:228:14: warning: sending 'self.onDraggingEnded' risks causing data races; this is an error in the Swift 6 language mode
226 | .onDraggingBegan(onDraggingBegan)
227 | .onDraggingChanged(onDraggingChanged)
228 | .onDraggingEnded(onDraggingEnded)
| |- warning: sending 'self.onDraggingEnded' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.onDraggingEnded' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:230:14: warning: sending 'self.draggingAnimation' risks causing data races; this is an error in the Swift 6 language mode
228 | .onDraggingEnded(onDraggingEnded)
229 | .bounces(bounces)
230 | .draggingAnimation(draggingAnimation)
| |- warning: sending 'self.draggingAnimation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.draggingAnimation' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
231 | .dragForwardOnly(dragForwardOnly)
232 | #else
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:52: warning: sending 'self.horizontalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| |- warning: sending 'self.horizontalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.horizontalSwipeDirection' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:245:104: warning: sending 'self.verticalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
243 |
244 | pagerContent = allowsMultiplePagination ? pagerContent.multiplePagination() : pagerContent
245 | pagerContent = isHorizontal ? pagerContent.horizontal(horizontalSwipeDirection) : pagerContent.vertical(verticalSwipeDirection)
| |- warning: sending 'self.verticalSwipeDirection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.verticalSwipeDirection' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
246 |
247 | if let preferredItemSize = preferredItemSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Pager.swift:248:41: warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
246 |
247 | if let preferredItemSize = preferredItemSize {
248 | pagerContent = pagerContent.preferredItemSize(preferredItemSize, alignment: itemAlignment)
| |- warning: sending 'self.itemAlignment' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.itemAlignment' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
249 | }
250 |
[5/21] Compiling SwiftUIPager PageTransition.swift
[6/21] Compiling SwiftUIPager PageWrapper.swift
[7/21] Compiling SwiftUIPager PagingAnimation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:39:23: warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | /// Standard animation. Single pagination `Pager` defaults to this value. Ease-out, 0.35 seconds.
39 | public static var standard: PagingAnimation = .standard(duration: 0.35)
| |- warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standard' 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
40 |
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:43:23: warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
42 | /// See the bezier curve [here](https://cubic-bezier.com/#.2,1,.9,1).
43 | public static var steep: PagingAnimation = .steep(duration: 0.2)
| |- warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'steep' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'steep' 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
44 |
45 | /// No animation applied
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:46:23: warning: static property 'none' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// No animation applied
46 | public static var none: PagingAnimation = .custom(animation: nil)
| |- warning: static property 'none' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'none' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'none' 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
47 |
48 | /// Translates the option selected to a `SwiftUI` animation
[8/21] Compiling SwiftUIPager PositionAlignment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:39:23: warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | /// Standard animation. Single pagination `Pager` defaults to this value. Ease-out, 0.35 seconds.
39 | public static var standard: PagingAnimation = .standard(duration: 0.35)
| |- warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standard' 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
40 |
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:43:23: warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
42 | /// See the bezier curve [here](https://cubic-bezier.com/#.2,1,.9,1).
43 | public static var steep: PagingAnimation = .steep(duration: 0.2)
| |- warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'steep' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'steep' 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
44 |
45 | /// No animation applied
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:46:23: warning: static property 'none' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// No animation applied
46 | public static var none: PagingAnimation = .custom(animation: nil)
| |- warning: static property 'none' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'none' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'none' 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
47 |
48 | /// Translates the option selected to a `SwiftUI` animation
[9/21] Compiling SwiftUIPager PagerContent+Buildable.swift
[10/21] Compiling SwiftUIPager PagerContent+Helper.swift
[11/21] Compiling SwiftUIPager Page.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/ContentLoadingPolicy.swift:26:16: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Default policy, a.k.a, `lazy(recyclingRatio: 5)`
26 | static var `default`: ContentLoadingPolicy = .lazy(recyclingRatio: 5)
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
27 | }
28 |
[12/21] Compiling SwiftUIPager ContentLoadingPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/ContentLoadingPolicy.swift:26:16: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Default policy, a.k.a, `lazy(recyclingRatio: 5)`
26 | static var `default`: ContentLoadingPolicy = .lazy(recyclingRatio: 5)
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
27 | }
28 |
[13/21] Compiling SwiftUIPager SwipeDirection.swift
[14/21] Compiling SwiftUIPager SwipeInteractionArea.swift
[15/21] Compiling SwiftUIPager GesturePriority.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/GesturePriority.swift:24:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// Defines a set of priorities to interact with gestures
12 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | public enum GesturePriority {
| `- note: consider making enum 'GesturePriority' conform to the 'Sendable' protocol
14 | /// Refers to `highPriorityGesture` modifier
15 | case high
:
22 |
23 | /// Default value, a.k.a, `normal`
24 | static let `default`: GesturePriority = .normal
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PaginationSensitivity.swift:28:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// The shift relative to container size needs to be greater than or equal to 50%
28 | public static var `default`: Self = .medium
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
29 |
30 | var value: CGFloat {
[16/21] Compiling SwiftUIPager PaginationSensitivity.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/GesturePriority.swift:24:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// Defines a set of priorities to interact with gestures
12 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | public enum GesturePriority {
| `- note: consider making enum 'GesturePriority' conform to the 'Sendable' protocol
14 | /// Refers to `highPriorityGesture` modifier
15 | case high
:
22 |
23 | /// Default value, a.k.a, `normal`
24 | static let `default`: GesturePriority = .normal
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PaginationSensitivity.swift:28:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// The shift relative to container size needs to be greater than or equal to 50%
28 | public static var `default`: Self = .medium
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
29 |
30 | var value: CGFloat {
[17/22] Compiling SwiftUIPager OnAnimationCompletedModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Helpers/OnAnimationCompletedModifier.swift:33:13: warning: capture of 'self' with non-sendable type 'OnAnimationCompletedModifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | /// `ViewModifier` used to observe the end of an animation
12 | @available(iOS 13.2, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | struct OnAnimationCompletedModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| `- note: consider making generic struct 'OnAnimationCompletedModifier' conform to the 'Sendable' protocol
14 |
15 | var animatableData: Value {
:
31 | guard animatableData == target else { return }
32 | DispatchQueue.main.async {
33 | self.completion()
| `- warning: capture of 'self' with non-sendable type 'OnAnimationCompletedModifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Helpers/OnAnimationCompletedModifier.swift:33:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
31 | guard animatableData == target else { return }
32 | DispatchQueue.main.async {
33 | self.completion()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
34 | }
35 | }
[18/22] Compiling SwiftUIPager View+Helper.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Helpers/OnAnimationCompletedModifier.swift:33:13: warning: capture of 'self' with non-sendable type 'OnAnimationCompletedModifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | /// `ViewModifier` used to observe the end of an animation
12 | @available(iOS 13.2, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | struct OnAnimationCompletedModifier<Value>: AnimatableModifier where Value: VectorArithmetic {
| `- note: consider making generic struct 'OnAnimationCompletedModifier' conform to the 'Sendable' protocol
14 |
15 | var animatableData: Value {
:
31 | guard animatableData == target else { return }
32 | DispatchQueue.main.async {
33 | self.completion()
| `- warning: capture of 'self' with non-sendable type 'OnAnimationCompletedModifier<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/Helpers/OnAnimationCompletedModifier.swift:33:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
31 | guard animatableData == target else { return }
32 | DispatchQueue.main.async {
33 | self.completion()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
34 | }
35 | }
[19/22] Emitting module SwiftUIPager
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/ContentLoadingPolicy.swift:26:16: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Default policy, a.k.a, `lazy(recyclingRatio: 5)`
26 | static var `default`: ContentLoadingPolicy = .lazy(recyclingRatio: 5)
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/GesturePriority.swift:24:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// Defines a set of priorities to interact with gestures
12 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | public enum GesturePriority {
| `- note: consider making enum 'GesturePriority' conform to the 'Sendable' protocol
14 | /// Refers to `highPriorityGesture` modifier
15 | case high
:
22 |
23 | /// Default value, a.k.a, `normal`
24 | static let `default`: GesturePriority = .normal
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PaginationSensitivity.swift:28:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// The shift relative to container size needs to be greater than or equal to 50%
28 | public static var `default`: Self = .medium
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
29 |
30 | var value: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:39:23: warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | /// Standard animation. Single pagination `Pager` defaults to this value. Ease-out, 0.35 seconds.
39 | public static var standard: PagingAnimation = .standard(duration: 0.35)
| |- warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standard' 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
40 |
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:43:23: warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
42 | /// See the bezier curve [here](https://cubic-bezier.com/#.2,1,.9,1).
43 | public static var steep: PagingAnimation = .steep(duration: 0.2)
| |- warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'steep' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'steep' 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
44 |
45 | /// No animation applied
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:46:23: warning: static property 'none' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | /// No animation applied
46 | public static var none: PagingAnimation = .custom(animation: nil)
| |- warning: static property 'none' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'none' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'none' 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
47 |
48 | /// Translates the option selected to a `SwiftUI` animation
[20/22] Compiling SwiftUIPager Buildable.swift
[21/22] Compiling SwiftUIPager CGPoint+Angle.swift
[22/22] Compiling SwiftUIPager PagerContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:39:23: warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | /// Standard animation. Single pagination `Pager` defaults to this value. Ease-out, 0.35 seconds.
39 | public static var standard: PagingAnimation = .standard(duration: 0.35)
| |- warning: static property 'standard' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standard' 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
40 |
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PaginationSensitivity.swift:28:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// The shift relative to container size needs to be greater than or equal to 50%
28 | public static var `default`: Self = .medium
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
29 |
30 | var value: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/ContentLoadingPolicy.swift:26:16: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Default policy, a.k.a, `lazy(recyclingRatio: 5)`
26 | static var `default`: ContentLoadingPolicy = .lazy(recyclingRatio: 5)
| |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/GesturePriority.swift:24:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// Defines a set of priorities to interact with gestures
12 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
13 | public enum GesturePriority {
| `- note: consider making enum 'GesturePriority' conform to the 'Sendable' protocol
14 | /// Refers to `highPriorityGesture` modifier
15 | case high
:
22 |
23 | /// Default value, a.k.a, `normal`
24 | static let `default`: GesturePriority = .normal
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GesturePriority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PagerContent.swift:414:12: warning: unnecessary check for 'macOS'; enclosing scope ensures guard will always be true
289 |
290 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
291 | extension Pager.PagerContent {
| `- note: enclosing scope here
292 |
293 | #if os(tvOS) || os(macOS)
:
412 |
413 | // #194 AnimatableModifier symbol not found in iOS 13.0 and iOS 13.1
414 | if #available(iOS 13.2, macOS 10.15, tvOS 13.0, watchOS 6.0, *) {
| `- warning: unnecessary check for 'macOS'; enclosing scope ensures guard will always be true
415 | // Do nothing
416 | } else if page != newPage {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPager/PageConfiguration/PagingAnimation.swift:43:23: warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | /// Highly steep curve. Very fast on start, slow on end. Multiple pagination `Pager` defaults to this value.
42 | /// See the bezier curve [here](https://cubic-bezier.com/#.2,1,.9,1).
43 | public static var steep: PagingAnimation = .steep(duration: 0.2)
| |- warning: static property 'steep' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'steep' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'steep' 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
44 |
45 | /// No animation applied
Build complete! (39.58s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftUIPager",
"name" : "SwiftUIPager",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SwiftUIPager",
"targets" : [
"SwiftUIPager"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SwiftUIPagerTests",
"module_type" : "SwiftTarget",
"name" : "SwiftUIPagerTests",
"path" : "Tests/SwiftUIPagerTests",
"sources" : [
"CGPoint+Angle_Tests.swift",
"DummyTests.swift",
"Helpers/Pager.Alignment+Helper.swift",
"Page_Tests.swift",
"Pager+Buildable_Tests.swift",
"PagerContent+Helper_Tests.swift",
"PagerWrapper_Tests.swift",
"PaginationSensitivity_Tests.swift",
"PagingAnimation_Tests.swift",
"PositionAlignment_Tests.swift",
"View+Helper_Tests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftUIPager"
],
"type" : "test"
},
{
"c99name" : "SwiftUIPager",
"module_type" : "SwiftTarget",
"name" : "SwiftUIPager",
"path" : "Sources/SwiftUIPager",
"product_memberships" : [
"SwiftUIPager"
],
"sources" : [
"Helpers/Buildable.swift",
"Helpers/CGPoint+Angle.swift",
"Helpers/OnAnimationCompletedModifier.swift",
"Helpers/View+Helper.swift",
"Page.swift",
"PageConfiguration/ContentLoadingPolicy.swift",
"PageConfiguration/GesturePriority.swift",
"PageConfiguration/PaginationSensitivity.swift",
"PageConfiguration/PagingAnimation.swift",
"PageConfiguration/PositionAlignment.swift",
"PageConfiguration/SwipeDirection.swift",
"PageConfiguration/SwipeInteractionArea.swift",
"PageTransition.swift",
"PageWrapper.swift",
"Pager+Buildable.swift",
"Pager.swift",
"PagerContent+Buildable.swift",
"PagerContent+Helper.swift",
"PagerContent.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.