Build Information
Successful build of CRToastSwift, reference 0.1.2 (570435
), with Swift 6.1 for iOS using Xcode 16.3 on 25 Apr 2025 01:58:28 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme CRToastSwift -destination generic/platform=iOS OTHER_SWIFT_FLAGS=-stats-output-dir .stats -strict-concurrency=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures
Build Log
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:231:23: warning: call to main actor-isolated instance method 'addBoundary(withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
collision.addBoundary(withIdentifier: CRToastManager.kCRToastManagerCollisionBoundaryIdentifier, for: outsideScreenBoundary)
^
UIKit.UICollisionBehavior.addBoundary:2:22: note: calls to instance method 'addBoundary(withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
@MainActor open func addBoundary(withIdentifier identifier: any NSCopying, for bezierPath: UIBezierPath)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:232:37: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.frame.size = screenSize
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:232:32: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.frame.size = screenSize
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:235:51: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let fc = manager.notificationView?.frame {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: property declared here
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:246:23: warning: call to main actor-isolated instance method 'addBoundary(withIdentifier:from:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
collision.addBoundary(withIdentifier: CRToastManager.kCRToastManagerCollisionBoundaryIdentifier,
^
UIKit.UICollisionBehavior.addBoundary:2:22: note: calls to instance method 'addBoundary(withIdentifier:from:to:)' from outside of its actor context are implicitly asynchronous
@MainActor open func addBoundary(withIdentifier identifier: any NSCopying, from p1: CGPoint, to p2: CGPoint)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:247:55: warning: main actor-isolated property 'outCollisionPoint1' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
from: notification?.outCollisionPoint1 ?? CGPoint.zero,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:877:16: note: property declared here
public var outCollisionPoint1:CGPoint {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:248:53: warning: main actor-isolated property 'outCollisionPoint2' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
to: notification?.outCollisionPoint2 ?? CGPoint.zero)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:897:16: note: property declared here
public var outCollisionPoint2:CGPoint {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:251:27: warning: call to main actor-isolated initializer 'init(items:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let rotLock = UIDynamicItemBehavior(items: collisionItems)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicItemBehavior.h:18:1: note: calls to initializer 'init(items:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:252:21: warning: main actor-isolated property 'allowsRotation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rotLock.allowsRotation = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicItemBehavior.h:44:39: note: mutation of this property is only permitted within the actor
@property (readwrite, nonatomic) BOOL allowsRotation; // force an item to never rotate
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:253:35: warning: main actor-isolated property 'animator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
manager.notification?.animator?.addBehavior(rotLock)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:765:16: note: property declared here
public var animator:UIDynamicAnimator? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:255:31: warning: main actor-isolated property 'animator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
manager.notification?.animator?.addBehavior(collision)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:765:16: note: property declared here
public var animator:UIDynamicAnimator? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:256:31: warning: main actor-isolated property 'animator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
manager.notification?.animator?.addBehavior(gravity)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:765:16: note: property declared here
public var animator:UIDynamicAnimator? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:191:22: note: add '@MainActor' to make instance method 'setupOutGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupOutGravity(_ manager: CRToastManager, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:262:35: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
manager.notification?.state = .exiting
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:693:16: note: mutation of this property is only permitted within the actor
public var state : CRToastState = .waiting
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:263:36: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
manager.statusBarView?.frame = notification?.statusBarViewAnimationFrame2 ?? CGRect.zero
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:263:58: warning: main actor-isolated property 'statusBarViewAnimationFrame2' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
manager.statusBarView?.frame = notification?.statusBarViewAnimationFrame2 ?? CGRect.zero
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:762:16: note: property declared here
public var statusBarViewAnimationFrame2:CGRect {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:264:40: warning: main actor-isolated property 'gestureRecognizers' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
manager.notificationWindow.gestureRecognizers?.forEach { recognizer in
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:382:78: note: property declared here
@property(nullable, nonatomic,copy) NSArray<__kindof UIGestureRecognizer *> *gestureRecognizers API_AVAILABLE(ios(3.2));
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:265:28: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
recognizer.isEnabled = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h:52:45: note: mutation of this property is only permitted within the actor
@property(nonatomic, getter=isEnabled) BOOL enabled; // default is YES. disabled gesture recognizers will not receive touches. when changed to NO the gesture recognizer will be cancelled if it's currently recognizing a gesture
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:268:53: warning: main actor-isolated property 'animationTypeOut' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let animType = manager.notification?.animationTypeOut {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:777:16: note: property declared here
public var animationTypeOut:CRToastAnimationType { return options.animationTypeOut }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:272:28: warning: call to main actor-isolated class method 'animate(withDuration:delay:options:animations:completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
UIKit.UIView.animate:3:30: note: calls to class method 'animate(withDuration:delay:options:animations:completion:)' from outside of its actor context are implicitly asynchronous
@MainActor open class func animate(withDuration duration: TimeInterval, delay: TimeInterval, options: UIView.AnimationOptions = [], animations: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:272:64: warning: main actor-isolated property 'animateOutTimeInterval' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:781:16: note: property declared here
public var animateOutTimeInterval:TimeInterval { return options.animateOutTimeInterval }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:278:28: warning: call to main actor-isolated class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
UIKit.UIView.animate:3:30: note: calls to class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' from outside of its actor context are implicitly asynchronous
@MainActor open class func animate(withDuration duration: TimeInterval, delay: TimeInterval, usingSpringWithDamping dampingRatio: CGFloat, initialSpringVelocity velocity: CGFloat, options: UIView.AnimationOptions = [], animations: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:278:64: warning: main actor-isolated property 'animateOutTimeInterval' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:781:16: note: property declared here
public var animateOutTimeInterval:TimeInterval { return options.animateOutTimeInterval }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:280:74: warning: main actor-isolated property 'springDamping' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
usingSpringWithDamping: notification?.springDamping ?? 0.5,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:784:16: note: property declared here
public var springDamping:CGFloat { return options.springDamping }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:281:73: warning: main actor-isolated property 'springInitialVelocity' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
initialSpringVelocity: notification?.springInitialVelocity ?? 0.5,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:785:16: note: property declared here
public var springInitialVelocity:CGFloat { return options.springInitialVelocity }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:296:26: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return toast.identifier
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:774:16: note: property declared here
public var identifier:String? { return options.identifier }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:302:43: warning: main actor-isolated property 'state' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
if animated && self.notification?.state == .entering || self.notification?.state == .displaying {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:693:16: note: property declared here
public var state : CRToastState = .waiting
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:302:84: warning: main actor-isolated property 'state' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
if animated && self.notification?.state == .entering || self.notification?.state == .displaying {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:693:16: note: property declared here
public var state : CRToastState = .waiting
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:320:31: warning: main actor-isolated property 'identifier' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let id = toast.identifier, id == identifier {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:774:16: note: property declared here
public var identifier:String? { return options.identifier }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:341:27: warning: main actor-isolated property 'appearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let ap = toast.appearance {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:698:16: note: property declared here
public var appearance : (()->Void)? = { return }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:345:28: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
notificationWindow.isHidden = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:346:61: warning: main actor-isolated property 'toastType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
var notificationSize = CRNotificationViewSize(toast.toastType, toast.preferredHeight)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:768:16: note: property declared here
public var toastType:CRToastType { return options.toastType }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:346:78: warning: main actor-isolated property 'preferredHeight' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
var notificationSize = CRNotificationViewSize(toast.toastType, toast.preferredHeight)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:769:16: note: property declared here
public var preferredHeight:CGFloat { return options.preferredHeight }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:347:18: warning: main actor-isolated property 'keepNavigationBarBorder' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if toast.keepNavigationBarBorder {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:773:16: note: property declared here
public var keepNavigationBarBorder:Bool { return options.keepNavigationBarBorder }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:353:56: warning: main actor-isolated property 'rootViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let rootViewController = notificationWindow.rootViewController as? CRToastViewController {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:66:57: note: property declared here
@property(nullable, nonatomic,strong) UIViewController *rootViewController API_AVAILABLE(ios(4.0)); // default is nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:354:32: warning: main actor-isolated property 'statusBarStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.statusBarStyle = toast.statusBarStyle
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift:13:16: note: mutation of this property is only permitted within the actor
public var statusBarStyle : UIStatusBarStyle = .default {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:354:55: warning: main actor-isolated property 'statusBarStyle' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.statusBarStyle = toast.statusBarStyle
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:803:16: note: property declared here
public var statusBarStyle:UIStatusBarStyle { return options.statusBarStyle }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:355:32: warning: main actor-isolated property 'autorotate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.autorotate = toast.autorotate
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift:10:16: note: mutation of this property is only permitted within the actor
public var autorotate : Bool = true
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:355:51: warning: main actor-isolated property 'autorotate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.autorotate = toast.autorotate
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:714:16: note: property declared here
public var autorotate : Bool {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:356:32: warning: main actor-isolated property 'notification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.notification = toast
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift:11:16: note: mutation of this property is only permitted within the actor
public var notification : CRToast?
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:358:57: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
notificationWindow.rootViewController?.view.frame = containerFrame
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:358:52: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
notificationWindow.rootViewController?.view.frame = containerFrame
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:358:32: warning: main actor-isolated property 'rootViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
notificationWindow.rootViewController?.view.frame = containerFrame
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:66:57: note: property declared here
@property(nullable, nonatomic,strong) UIViewController *rootViewController API_AVAILABLE(ios(4.0)); // default is nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:359:32: warning: main actor-isolated property 'windowLevel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
notificationWindow.windowLevel = toast.underStatusBar ? .normal + 1 : .statusBar
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:37:36: note: mutation of this property is only permitted within the actor
@property(nonatomic) UIWindowLevel windowLevel; // default = 0.0
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:359:52: warning: main actor-isolated property 'underStatusBar' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
notificationWindow.windowLevel = toast.underStatusBar ? .normal + 1 : .statusBar
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:772:16: note: property declared here
public var underStatusBar:Bool { return options.underStatusBar }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:361:39: warning: main actor-isolated property 'statusBarView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let statusBarView = toast.statusBarView
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:758:16: note: property declared here
public var statusBarView:UIView { return self.privateStatusBarView }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:362:27: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
statusBarView.frame = rootViewController.view.bounds
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:362:59: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
statusBarView.frame = rootViewController.view.bounds
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:188:40: note: property declared here
@property(nonatomic) CGRect bounds; // default bounds is zero origin, frame size. animatable
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:362:54: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
statusBarView.frame = rootViewController.view.bounds
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:363:37: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.addSubview(statusBarView)
^
UIKit.UIView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
@MainActor open func addSubview(_ view: UIView)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:363:32: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.addSubview(statusBarView)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:365:27: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
statusBarView.isHidden = toast.presentationType == .cover
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:365:44: warning: main actor-isolated property 'presentationType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
statusBarView.isHidden = toast.presentationType == .cover
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:771:16: note: property declared here
public var presentationType:CRToastPresentationType { return options.presentationType }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:367:42: warning: main actor-isolated property 'notificationView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let notificationView = toast.notificationView
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:734:16: note: property declared here
public var notificationView:UIView {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:369:20: warning: main actor-isolated property 'toast' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
tv.toast = toast
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastView.swift:94:16: note: mutation of this property is only permitted within the actor
public var toast : CRToast? {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:371:30: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
notificationView.frame = toast.notificationViewAnimationFrame1
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:371:44: warning: main actor-isolated property 'notificationViewAnimationFrame1' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
notificationView.frame = toast.notificationViewAnimationFrame1
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:737:16: note: property declared here
public var notificationViewAnimationFrame1:CGRect {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:372:37: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.addSubview(notificationView)
^
UIKit.UIView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
@MainActor open func addSubview(_ view: UIView)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:372:32: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.addSubview(notificationView)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:374:32: warning: main actor-isolated property 'toastView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.toastView = notificationView
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift:12:16: note: mutation of this property is only permitted within the actor
public var toastView : UIView?
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:375:30: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
notificationView.isHidden = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:377:52: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
for subview in rootViewController.view.subviews {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:222:64: note: property declared here
@property(nonatomic,readonly,copy) NSArray<__kindof UIView *> *subviews;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:377:47: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
for subview in rootViewController.view.subviews {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:378:25: warning: main actor-isolated property 'isUserInteractionEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
subview.isUserInteractionEnabled = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:59: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:381:37: warning: main actor-isolated property 'isUserInteractionEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.isUserInteractionEnabled = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:59: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:381:32: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.isUserInteractionEnabled = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:382:37: warning: main actor-isolated property 'gestureRecognizers' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.gestureRecognizers = toast.gestureRecognizers
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:382:78: note: mutation of this property is only permitted within the actor
@property(nullable, nonatomic,copy) NSArray<__kindof UIGestureRecognizer *> *gestureRecognizers API_AVAILABLE(ios(3.2));
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:382:32: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.gestureRecognizers = toast.gestureRecognizers
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:382:64: warning: main actor-isolated property 'gestureRecognizers' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.gestureRecognizers = toast.gestureRecognizers
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:711:16: note: property declared here
public var gestureRecognizers : [UIGestureRecognizer] = []
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:385:139: warning: main actor-isolated property 'uuid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let inwardAnimationCompletionBlock = CRToastInwardAnimationsCompletionBlock(self, toast: toast, notificationUUIDString: toast.uuid.uuidString)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:692:16: note: property declared here
public var uuid : UUID = UUID()
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:387:19: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
toast.state = .entering
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:693:16: note: mutation of this property is only permitted within the actor
public var state : CRToastState = .waiting
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:391:22: warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if toast.text.count > 0 || (toast.subtitleText?.count ?? 0) > 0 {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:788:16: note: property declared here
public var text:String { return options.text }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:340:10: note: add '@MainActor' to make instance method 'displayNotification' part of global actor 'MainActor'
func displayNotification(_ toast: CRToast) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:391:47: warning: main actor-isolated property 'subtitleText' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
if toast.text.count > 0 || (toast.subtitleText?.count ?? 0) > 0 {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:796:16: note: property declared here
public var subtitleText:String? { return options.subtitleText }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:402:147: warning: main actor-isolated property 'rootViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let notificationView = self.notificationView, let statusBarView = self.statusBarView, let rootViewController = self.notificationWindow.rootViewController {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:66:57: note: property declared here
@property(nullable, nonatomic,strong) UIViewController *rootViewController API_AVAILABLE(ios(4.0)); // default is nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:403:19: warning: call to main actor-isolated instance method 'initiateAnimator' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
toast.initiateAnimator(rootViewController.view)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:954:17: note: calls to instance method 'initiateAnimator' from outside of its actor context are implicitly asynchronous
public func initiateAnimator(_ view: UIView) {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:954:17: note: main actor isolation inferred from conformance to protocol 'UIGestureRecognizerDelegate'
public func initiateAnimator(_ view: UIView) {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:403:55: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
toast.initiateAnimator(rootViewController.view)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:404:19: warning: main actor-isolated property 'animator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
toast.animator?.removeAllBehaviors()
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:765:16: note: property declared here
public var animator:UIDynamicAnimator? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:406:27: warning: call to main actor-isolated initializer 'init(items:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let gravity = UIGravityBehavior(items: [notificationView, statusBarView])
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h:19:1: note: calls to initializer 'init(items:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:407:21: warning: main actor-isolated property 'gravityDirection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
gravity.gravityDirection = toast.inGravityDirection
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h:27:43: note: mutation of this property is only permitted within the actor
@property (readwrite, nonatomic) CGVector gravityDirection;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:407:46: warning: main actor-isolated property 'inGravityDirection' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
gravity.gravityDirection = toast.inGravityDirection
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:821:16: note: property declared here
public var inGravityDirection:CGVector {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:408:21: warning: main actor-isolated property 'magnitude' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
gravity.magnitude = toast.gravityMagnitude
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h:30:42: note: mutation of this property is only permitted within the actor
@property (readwrite, nonatomic) CGFloat magnitude;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:408:39: warning: main actor-isolated property 'gravityMagnitude' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
gravity.magnitude = toast.gravityMagnitude
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:786:16: note: property declared here
public var gravityMagnitude:CGFloat { return options.gravityMagnitude }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:410:22: warning: main actor-isolated property 'presentationType' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if toast.presentationType == .push {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:771:16: note: property declared here
public var presentationType:CRToastPresentationType { return options.presentationType }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:415:27: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if vo.superview == rootViewController.view { continue } // views have to share the same parent
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:221:55: note: property declared here
@property(nullable, nonatomic,readonly) UIView *superview;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:415:59: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if vo.superview == rootViewController.view { continue } // views have to share the same parent
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:416:29: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let v = UIView(frame: vo.frame)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:149:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:416:46: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let v = UIView(frame: vo.frame)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: property declared here
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:417:23: warning: main actor-isolated property 'backgroundColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
v.backgroundColor = UIColor.clear
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:303:66: note: mutation of this property is only permitted within the actor
@property(nullable, nonatomic,copy) UIColor *backgroundColor UI_APPEARANCE_SELECTOR; // default is nil. Can be useful with the appearance proxy on custom UIView subclasses.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:418:45: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.addSubview(v)
^
UIKit.UIView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
@MainActor open func addSubview(_ view: UIView)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:418:40: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
rootViewController.view.addSubview(v)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:420:32: warning: call to main actor-isolated initializer 'init(item:snapTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let snap = UISnapBehavior(item: v, snapTo: v.center)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISnapBehavior.h:20:1: note: calls to initializer 'init(item:snapTo:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithItem:(id <UIDynamicItem>)item snapToPoint:(CGPoint)point NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:420:66: warning: main actor-isolated property 'center' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let snap = UISnapBehavior(item: v, snapTo: v.center)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:189:40: note: property declared here
@property(nonatomic) CGPoint center; // center is center of frame, relative to anchorPoint. animatable
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:421:27: warning: main actor-isolated property 'animator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
toast.animator?.addBehavior(snap)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:765:16: note: property declared here
public var animator:UIDynamicAnimator? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:424:31: warning: call to main actor-isolated initializer 'init(items:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let rotLock = UIDynamicItemBehavior(items: collisionItems)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicItemBehavior.h:18:1: note: calls to initializer 'init(items:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:425:25: warning: main actor-isolated property 'allowsRotation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
rotLock.allowsRotation = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicItemBehavior.h:44:39: note: mutation of this property is only permitted within the actor
@property (readwrite, nonatomic) BOOL allowsRotation; // force an item to never rotate
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:426:23: warning: main actor-isolated property 'animator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
toast.animator?.addBehavior(rotLock)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:765:16: note: property declared here
public var animator:UIDynamicAnimator? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:428:29: warning: call to main actor-isolated initializer 'init(items:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let collision = UICollisionBehavior(items: collisionItems)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h:42:1: note: calls to initializer 'init(items:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:429:23: warning: main actor-isolated property 'collisionDelegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
collision.collisionDelegate = self
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h:61:83: note: mutation of this property is only permitted within the actor
@property (nullable, nonatomic, weak, readwrite) id <UICollisionBehaviorDelegate> collisionDelegate;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:430:23: warning: call to main actor-isolated instance method 'addBoundary(withIdentifier:from:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
collision.addBoundary(withIdentifier: CRToastManager.kCRToastManagerCollisionBoundaryIdentifier,
^
UIKit.UICollisionBehavior.addBoundary:2:22: note: calls to instance method 'addBoundary(withIdentifier:from:to:)' from outside of its actor context are implicitly asynchronous
@MainActor open func addBoundary(withIdentifier identifier: any NSCopying, from p1: CGPoint, to p2: CGPoint)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:431:47: warning: main actor-isolated property 'inCollisionPoint1' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
from: toast.inCollisionPoint1,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:833:16: note: property declared here
public var inCollisionPoint1:CGPoint {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:432:45: warning: main actor-isolated property 'inCollisionPoint2' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
to: toast.inCollisionPoint2)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:855:16: note: property declared here
public var inCollisionPoint2:CGPoint {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:433:19: warning: main actor-isolated property 'animator' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
toast.animator?.addBehavior(collision)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:765:16: note: property declared here
public var animator:UIDynamicAnimator? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:401:22: note: add '@MainActor' to make instance method 'setupInGravity(_:callout:)' part of global actor 'MainActor'
fileprivate func setupInGravity(_ toast: CRToast, callout: [UIView]? = nil) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:440:22: warning: main actor-isolated property 'animationTypeIn' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
switch toast.animationTypeIn {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:776:16: note: property declared here
public var animationTypeIn:CRToastAnimationType { return options.animationTypeIn }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:439:10: note: add '@MainActor' to make instance method 'showNotification(_:inward:completion:)' part of global actor 'MainActor'
func showNotification(_ toast: CRToast, inward animation: @escaping CRToastAnimationStepBlock, completion: @escaping CRToastAnimationCompletionBlock) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:442:20: warning: call to main actor-isolated class method 'animate(withDuration:animations:completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
^
UIKit.UIView.animate:3:30: note: calls to class method 'animate(withDuration:animations:completion:)' from outside of its actor context are implicitly asynchronous
@MainActor open class func animate(withDuration duration: TimeInterval, animations: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:439:10: note: add '@MainActor' to make instance method 'showNotification(_:inward:completion:)' part of global actor 'MainActor'
func showNotification(_ toast: CRToast, inward animation: @escaping CRToastAnimationStepBlock, completion: @escaping CRToastAnimationCompletionBlock) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:442:48: warning: main actor-isolated property 'animateInTimeInterval' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:780:16: note: property declared here
public var animateInTimeInterval:TimeInterval { return options.animateInTimeInterval }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:439:10: note: add '@MainActor' to make instance method 'showNotification(_:inward:completion:)' part of global actor 'MainActor'
func showNotification(_ toast: CRToast, inward animation: @escaping CRToastAnimationStepBlock, completion: @escaping CRToastAnimationCompletionBlock) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:446:20: warning: call to main actor-isolated class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
^
UIKit.UIView.animate:3:30: note: calls to class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' from outside of its actor context are implicitly asynchronous
@MainActor open class func animate(withDuration duration: TimeInterval, delay: TimeInterval, usingSpringWithDamping dampingRatio: CGFloat, initialSpringVelocity velocity: CGFloat, options: UIView.AnimationOptions = [], animations: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:439:10: note: add '@MainActor' to make instance method 'showNotification(_:inward:completion:)' part of global actor 'MainActor'
func showNotification(_ toast: CRToast, inward animation: @escaping CRToastAnimationStepBlock, completion: @escaping CRToastAnimationCompletionBlock) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:446:48: warning: main actor-isolated property 'animateInTimeInterval' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:780:16: note: property declared here
public var animateInTimeInterval:TimeInterval { return options.animateInTimeInterval }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:439:10: note: add '@MainActor' to make instance method 'showNotification(_:inward:completion:)' part of global actor 'MainActor'
func showNotification(_ toast: CRToast, inward animation: @escaping CRToastAnimationStepBlock, completion: @escaping CRToastAnimationCompletionBlock) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:448:58: warning: main actor-isolated property 'springDamping' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
usingSpringWithDamping: toast.springDamping,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:784:16: note: property declared here
public var springDamping:CGFloat { return options.springDamping }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:439:10: note: add '@MainActor' to make instance method 'showNotification(_:inward:completion:)' part of global actor 'MainActor'
func showNotification(_ toast: CRToast, inward animation: @escaping CRToastAnimationStepBlock, completion: @escaping CRToastAnimationCompletionBlock) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:449:57: warning: main actor-isolated property 'springInitialVelocity' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
initialSpringVelocity: toast.springInitialVelocity,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:785:16: note: property declared here
public var springInitialVelocity:CGFloat { return options.springInitialVelocity }
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:439:10: note: add '@MainActor' to make instance method 'showNotification(_:inward:completion:)' part of global actor 'MainActor'
func showNotification(_ toast: CRToast, inward animation: @escaping CRToastAnimationStepBlock, completion: @escaping CRToastAnimationCompletionBlock) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:469:17: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let v = UIView(frame: bnds)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:149:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:464:17: note: add '@MainActor' to make instance method 'strokeImage(with:)' part of global actor 'MainActor'
public func strokeImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:470:50: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIGraphicsBeginImageContextWithOptions(v.frame.size, false, UIScreen.main.scale)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: property declared here
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:464:17: note: add '@MainActor' to make instance method 'strokeImage(with:)' part of global actor 'MainActor'
public func strokeImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:470:83: warning: main actor-isolated property 'scale' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIGraphicsBeginImageContextWithOptions(v.frame.size, false, UIScreen.main.scale)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:60:39: note: property declared here
@property(nonatomic,readonly) CGFloat scale API_AVAILABLE(ios(4.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:464:17: note: add '@MainActor' to make instance method 'strokeImage(with:)' part of global actor 'MainActor'
public func strokeImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:470:78: warning: main actor-isolated class property 'main' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIGraphicsBeginImageContextWithOptions(v.frame.size, false, UIScreen.main.scale)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:464:17: note: add '@MainActor' to make instance method 'strokeImage(with:)' part of global actor 'MainActor'
public func strokeImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:472:15: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
v.layer.render(in: ctx)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:464:17: note: add '@MainActor' to make instance method 'strokeImage(with:)' part of global actor 'MainActor'
public func strokeImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:492:17: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let v = UIView(frame: bnds)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:149:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:487:17: note: add '@MainActor' to make instance method 'fillImage(with:)' part of global actor 'MainActor'
public func fillImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:493:50: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIGraphicsBeginImageContextWithOptions(v.frame.size, false, UIScreen.main.scale)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: property declared here
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:487:17: note: add '@MainActor' to make instance method 'fillImage(with:)' part of global actor 'MainActor'
public func fillImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:493:83: warning: main actor-isolated property 'scale' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIGraphicsBeginImageContextWithOptions(v.frame.size, false, UIScreen.main.scale)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:60:39: note: property declared here
@property(nonatomic,readonly) CGFloat scale API_AVAILABLE(ios(4.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:487:17: note: add '@MainActor' to make instance method 'fillImage(with:)' part of global actor 'MainActor'
public func fillImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:493:78: warning: main actor-isolated class property 'main' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
UIGraphicsBeginImageContextWithOptions(v.frame.size, false, UIScreen.main.scale)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:487:17: note: add '@MainActor' to make instance method 'fillImage(with:)' part of global actor 'MainActor'
public func fillImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:495:15: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
v.layer.render(in: ctx)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:487:17: note: add '@MainActor' to make instance method 'fillImage(with:)' part of global actor 'MainActor'
public func fillImage(with color: UIColor) -> UIImage? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:21:17: warning: sending 'options' risks causing data races; this is an error in the Swift 6 language mode
CRToast.setDefaultOptions(options)
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:21:17: note: sending task-isolated 'options' to main actor-isolated static method 'setDefaultOptions' risks causing data races between main actor-isolated and task-isolated uses
CRToast.setDefaultOptions(options)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:442:20: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:442:20: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') to main actor-isolated class method 'animate(withDuration:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: toast.animateInTimeInterval,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:442:20: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:442:20: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') to main actor-isolated class method 'animate(withDuration:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: toast.animateInTimeInterval,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:446:20: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:446:20: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') to main actor-isolated class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: toast.animateInTimeInterval,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:446:20: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: toast.animateInTimeInterval,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:446:20: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') to main actor-isolated class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: toast.animateInTimeInterval,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:40:56: warning: sending 'with' risks causing data races; this is an error in the Swift 6 language mode
CRToastManager.manager.addNotification(CRToast.notification(with: with, appearance: appearance, completion: completion))
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:40:56: note: sending task-isolated 'with' to main actor-isolated static method 'notification(with:appearance:completion:)' risks causing data races between main actor-isolated and task-isolated uses
CRToastManager.manager.addNotification(CRToast.notification(with: with, appearance: appearance, completion: completion))
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:40:56: warning: sending 'appearance' risks causing data races; this is an error in the Swift 6 language mode
CRToastManager.manager.addNotification(CRToast.notification(with: with, appearance: appearance, completion: completion))
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:40:56: note: sending task-isolated 'appearance' to main actor-isolated static method 'notification(with:appearance:completion:)' risks causing data races between main actor-isolated and task-isolated uses
CRToastManager.manager.addNotification(CRToast.notification(with: with, appearance: appearance, completion: completion))
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:40:56: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
CRToastManager.manager.addNotification(CRToast.notification(with: with, appearance: appearance, completion: completion))
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:40:56: note: sending task-isolated 'completion' to main actor-isolated static method 'notification(with:appearance:completion:)' risks causing data races between main actor-isolated and task-isolated uses
CRToastManager.manager.addNotification(CRToast.notification(with: with, appearance: appearance, completion: completion))
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:130:28: warning: sending 'manager' risks causing data races; this is an error in the Swift 6 language mode
if manager.notification?.state == .displaying && manager.notification?.uuid.uuidString == notificationUUIDString {
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:130:28: note: task-isolated 'manager' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
if manager.notification?.state == .displaying && manager.notification?.uuid.uuidString == notificationUUIDString {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:187:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
self.checkAnim(for: view, lastFrame: f, delay: delay, callback)
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:187:17: note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
self.checkAnim(for: view, lastFrame: f, delay: delay, callback)
^~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:187:71: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
self.checkAnim(for: view, lastFrame: f, delay: delay, callback)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:187:71: note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
self.checkAnim(for: view, lastFrame: f, delay: delay, callback)
^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:238:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
self.checkAnim(for: manager.notificationView, lastFrame: f, delay: 0.2) {
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:238:21: note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
self.checkAnim(for: manager.notificationView, lastFrame: f, delay: 0.2) {
^~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:238:41: warning: sending 'manager' risks causing data races; this is an error in the Swift 6 language mode
self.checkAnim(for: manager.notificationView, lastFrame: f, delay: 0.2) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:238:41: note: task-isolated 'manager' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
self.checkAnim(for: manager.notificationView, lastFrame: f, delay: 0.2) {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:272:28: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:272:28: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') to main actor-isolated class method 'animate(withDuration:delay:options:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:272:28: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:272:28: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') to main actor-isolated class method 'animate(withDuration:delay:options:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:278:28: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:278:28: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationStepBlock' (aka '() -> ()') to main actor-isolated class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:278:28: warning: sending value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') risks causing data races; this is an error in the Swift 6 language mode
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastManager.swift:278:28: note: sending task-isolated value of non-Sendable type 'CRToastManager.CRToastAnimationCompletionBlock' (aka '(Bool) -> ()') to main actor-isolated class method 'animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)' risks causing races in between task-isolated and main actor-isolated uses
UIView.animate(withDuration: notification?.animateOutTimeInterval ?? 0.5,
^
SwiftCompile normal arm64 Compiling\ CRToastWindow.swift /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastWindow.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastWindow.swift (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ CRToastViewController.swift /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift:3:18: warning: reference to var 'NSFoundationVersionNumber' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
let iOS9 = floor(NSFoundationVersionNumber) >= floor(NSFoundationVersionNumber_iOS_9_0)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:494:26: note: var declared here
FOUNDATION_EXPORT double NSFoundationVersionNumber;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastViewController.swift:33:15: warning: 'willAnimateRotation(to:duration:)' was deprecated in iOS 8.0: Implement viewWillTransitionToSize:withTransitionCoordinator: instead
super.willAnimateRotation(to: toInterfaceOrientation, duration: duration)
^
SwiftCompile normal arm64 Compiling\ CRToastConfig.swift /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:17:23: warning: static property 'swipeUp' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let swipeUp = CRToastInteractionType(rawValue: 1 << 0)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:17:23: note: add '@MainActor' to make static property 'swipeUp' part of global actor 'MainActor'
public static let swipeUp = CRToastInteractionType(rawValue: 1 << 0)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:17:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let swipeUp = CRToastInteractionType(rawValue: 1 << 0)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:18:23: warning: static property 'swipeLeft' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let swipeLeft = CRToastInteractionType(rawValue: 1 << 1)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:18:23: note: add '@MainActor' to make static property 'swipeLeft' part of global actor 'MainActor'
public static let swipeLeft = CRToastInteractionType(rawValue: 1 << 1)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:18:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let swipeLeft = CRToastInteractionType(rawValue: 1 << 1)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:19:23: warning: static property 'swipeDown' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let swipeDown = CRToastInteractionType(rawValue: 1 << 2)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:19:23: note: add '@MainActor' to make static property 'swipeDown' part of global actor 'MainActor'
public static let swipeDown = CRToastInteractionType(rawValue: 1 << 2)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:19:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let swipeDown = CRToastInteractionType(rawValue: 1 << 2)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:20:23: warning: static property 'swipeRight' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let swipeRight = CRToastInteractionType(rawValue: 1 << 3)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:20:23: note: add '@MainActor' to make static property 'swipeRight' part of global actor 'MainActor'
public static let swipeRight = CRToastInteractionType(rawValue: 1 << 3)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:20:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let swipeRight = CRToastInteractionType(rawValue: 1 << 3)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:21:23: warning: static property 'tapOnce' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let tapOnce = CRToastInteractionType(rawValue: 1 << 4)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:21:23: note: add '@MainActor' to make static property 'tapOnce' part of global actor 'MainActor'
public static let tapOnce = CRToastInteractionType(rawValue: 1 << 4)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:21:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let tapOnce = CRToastInteractionType(rawValue: 1 << 4)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:22:23: warning: static property 'tapTwice' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let tapTwice = CRToastInteractionType(rawValue: 1 << 5)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:22:23: note: add '@MainActor' to make static property 'tapTwice' part of global actor 'MainActor'
public static let tapTwice = CRToastInteractionType(rawValue: 1 << 5)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:22:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let tapTwice = CRToastInteractionType(rawValue: 1 << 5)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:23:23: warning: static property 'twoFingerTapOnce' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let twoFingerTapOnce = CRToastInteractionType(rawValue: 1 << 6)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:23:23: note: add '@MainActor' to make static property 'twoFingerTapOnce' part of global actor 'MainActor'
public static let twoFingerTapOnce = CRToastInteractionType(rawValue: 1 << 6)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:23:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let twoFingerTapOnce = CRToastInteractionType(rawValue: 1 << 6)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:24:23: warning: static property 'twoFingerTapTwice' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let twoFingerTapTwice = CRToastInteractionType(rawValue: 1 << 7)
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:24:23: note: add '@MainActor' to make static property 'twoFingerTapTwice' part of global actor 'MainActor'
public static let twoFingerTapTwice = CRToastInteractionType(rawValue: 1 << 7)
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:24:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let twoFingerTapTwice = CRToastInteractionType(rawValue: 1 << 7)
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:27:23: warning: static property 'swipe' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let swipe:CRToastInteractionType = [.swipeUp,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:27:23: note: add '@MainActor' to make static property 'swipe' part of global actor 'MainActor'
public static let swipe:CRToastInteractionType = [.swipeUp,
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:27:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let swipe:CRToastInteractionType = [.swipeUp,
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:33:23: warning: static property 'tap' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let tap:CRToastInteractionType = [.tapOnce,
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:33:23: note: add '@MainActor' to make static property 'tap' part of global actor 'MainActor'
public static let tap:CRToastInteractionType = [.tapOnce,
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:33:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let tap:CRToastInteractionType = [.tapOnce,
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:39:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'CRToastInteractionType' may have shared mutable state; this is an error in the Swift 6 language mode
public static let all:CRToastInteractionType = [.swipe,.tap]
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:10:15: note: consider making struct 'CRToastInteractionType' conform to the 'Sendable' protocol
public struct CRToastInteractionType : OptionSet {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:39:23: note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
public static let all:CRToastInteractionType = [.swipe,.tap]
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:39:23: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
public static let all:CRToastInteractionType = [.swipe,.tap]
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:517:24: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
private static var _default : CROptions? = nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:517:24: note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
private static var _default : CROptions? = nil
~~~ ^
let
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:517:24: note: add '@MainActor' to make static property '_default' part of global actor 'MainActor'
private static var _default : CROptions? = nil
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:517:24: note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
private static var _default : CROptions? = nil
^
nonisolated(unsafe)
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:510:60: warning: main actor-isolated property 'tintColor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let d = UIApplication.shared.delegate?.window??.tintColor {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:319:56: note: property declared here
@property(null_resettable, nonatomic, strong) UIColor *tintColor API_AVAILABLE(ios(7.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:510:41: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let d = UIApplication.shared.delegate?.window??.tintColor {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:89:66: note: property declared here
@property(nullable, nonatomic, assign) id<UIApplicationDelegate> delegate;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:510:34: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let d = UIApplication.shared.delegate?.window??.tintColor {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:510:51: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let d = UIApplication.shared.delegate?.window??.tintColor {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:441:51: note: property declared here
@property (nullable, nonatomic, strong) UIWindow *window API_AVAILABLE(ios(5.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:983:26: warning: main actor-isolated property 'traitCollection' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return UIScreen.main.traitCollection.horizontalSizeClass == .regular
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:170:52: note: property declared here
@property (nonatomic, readonly) UITraitCollection *traitCollection API_AVAILABLE(ios(8.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:982:6: note: add '@MainActor' to make global function 'CRHorizontalSizeClassRegular()' part of global actor 'MainActor'
func CRHorizontalSizeClassRegular() -> Bool {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:983:21: warning: main actor-isolated class property 'main' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return UIScreen.main.traitCollection.horizontalSizeClass == .regular
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:982:6: note: add '@MainActor' to make global function 'CRHorizontalSizeClassRegular()' part of global actor 'MainActor'
func CRHorizontalSizeClassRegular() -> Bool {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:990:33: warning: main actor-isolated property 'statusBarOrientation' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return UIApplication.shared.statusBarOrientation
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:119:55: note: property declared here
@property(readonly, nonatomic) UIInterfaceOrientation statusBarOrientation API_UNAVAILABLE(tvos) API_DEPRECATED("Use the interfaceOrientation property of the window scene instead.", ios(2.0, 13.0)) API_UNAVAILABLE(visionos);
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:989:6: note: add '@MainActor' to make global function 'CRGetDeviceOrientation()' part of global actor 'MainActor'
func CRGetDeviceOrientation() -> UIInterfaceOrientation {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:990:26: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return UIApplication.shared.statusBarOrientation
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:989:6: note: add '@MainActor' to make global function 'CRGetDeviceOrientation()' part of global actor 'MainActor'
func CRGetDeviceOrientation() -> UIInterfaceOrientation {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:995:47: warning: main actor-isolated property 'statusBarFrame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let statusBarFrame = UIApplication.shared.statusBarFrame
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:131:38: note: property declared here
@property(nonatomic,readonly) CGRect statusBarFrame API_DEPRECATED("Use the statusBarManager property of the window scene instead.", ios(2.0, 13.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(visionos, watchos); // returns CGRectZero if the status bar is hidden
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:994:6: note: add '@MainActor' to make global function 'CRGetStatusBarHeightForOrientation' part of global actor 'MainActor'
func CRGetStatusBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:995:40: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let statusBarFrame = UIApplication.shared.statusBarFrame
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:994:6: note: add '@MainActor' to make global function 'CRGetStatusBarHeightForOrientation' part of global actor 'MainActor'
func CRGetStatusBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:999:63: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let statusBarFrameWidth = UIApplication.shared.keyWindow?.frame.width ?? UIApplication.shared.statusBarFrame.width
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: property declared here
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:998:6: note: add '@MainActor' to make global function 'CRGetStatusBarWidthForOrientation' part of global actor 'MainActor'
func CRGetStatusBarWidthForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:999:52: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let statusBarFrameWidth = UIApplication.shared.keyWindow?.frame.width ?? UIApplication.shared.statusBarFrame.width
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: property declared here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:998:6: note: add '@MainActor' to make global function 'CRGetStatusBarWidthForOrientation' part of global actor 'MainActor'
func CRGetStatusBarWidthForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:999:45: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let statusBarFrameWidth = UIApplication.shared.keyWindow?.frame.width ?? UIApplication.shared.statusBarFrame.width
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:998:6: note: add '@MainActor' to make global function 'CRGetStatusBarWidthForOrientation' part of global actor 'MainActor'
func CRGetStatusBarWidthForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:999:99: warning: main actor-isolated property 'statusBarFrame' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
let statusBarFrameWidth = UIApplication.shared.keyWindow?.frame.width ?? UIApplication.shared.statusBarFrame.width
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:131:38: note: property declared here
@property(nonatomic,readonly) CGRect statusBarFrame API_DEPRECATED("Use the statusBarManager property of the window scene instead.", ios(2.0, 13.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(visionos, watchos); // returns CGRectZero if the status bar is hidden
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:999:92: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
let statusBarFrameWidth = UIApplication.shared.keyWindow?.frame.width ?? UIApplication.shared.statusBarFrame.width
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1040:65: warning: main actor-isolated property 'rootViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let rootViewController = UIApplication.shared.keyWindow?.rootViewController, let visibleViewController = UIWindow.visibleViewController(from: rootViewController) {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:66:57: note: property declared here
@property(nullable, nonatomic,strong) UIViewController *rootViewController API_AVAILABLE(ios(4.0)); // default is nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1039:6: note: add '@MainActor' to make global function 'CRGetNavigationBarHeightForOrientation' part of global actor 'MainActor'
func CRGetNavigationBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1040:54: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let rootViewController = UIApplication.shared.keyWindow?.rootViewController, let visibleViewController = UIWindow.visibleViewController(from: rootViewController) {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: property declared here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1039:6: note: add '@MainActor' to make global function 'CRGetNavigationBarHeightForOrientation' part of global actor 'MainActor'
func CRGetNavigationBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1040:47: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let rootViewController = UIApplication.shared.keyWindow?.rootViewController, let visibleViewController = UIWindow.visibleViewController(from: rootViewController) {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1039:6: note: add '@MainActor' to make global function 'CRGetNavigationBarHeightForOrientation' part of global actor 'MainActor'
func CRGetNavigationBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1040:122: warning: call to main actor-isolated static method 'visibleViewController(from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
if let rootViewController = UIApplication.shared.keyWindow?.rootViewController, let visibleViewController = UIWindow.visibleViewController(from: rootViewController) {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1023:24: note: calls to static method 'visibleViewController(from:)' from outside of its actor context are implicitly asynchronous
public static func visibleViewController(from viewController: UIViewController?) -> UIViewController? {
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1039:6: note: add '@MainActor' to make global function 'CRGetNavigationBarHeightForOrientation' part of global actor 'MainActor'
func CRGetNavigationBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1041:43: warning: main actor-isolated property 'safeAreaInsets' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return visibleViewController.view.safeAreaInsets.top
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:275:45: note: property declared here
@property (nonatomic,readonly) UIEdgeInsets safeAreaInsets API_AVAILABLE(ios(11.0), tvos(11.0)) API_UNAVAILABLE(watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1039:6: note: add '@MainActor' to make global function 'CRGetNavigationBarHeightForOrientation' part of global actor 'MainActor'
func CRGetNavigationBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1041:38: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return visibleViewController.view.safeAreaInsets.top
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1039:6: note: add '@MainActor' to make global function 'CRGetNavigationBarHeightForOrientation' part of global actor 'MainActor'
func CRGetNavigationBarHeightForOrientation(_ orientation: UIInterfaceOrientation) -> CGFloat {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1104:54: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
containerFrame = CGRect(x: UIScreen.main.bounds.width-notificationSize.height, y: 0, width: notificationSize.height, height: notificationSize.width)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:59:39: note: property declared here
@property(nonatomic,readonly) CGRect bounds; // Bounds of entire screen in points
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1096:6: note: add '@MainActor' to make global function 'CRGetNotificationContainerFrame' part of global actor 'MainActor'
func CRGetNotificationContainerFrame(_ statusBarOrientation : UIInterfaceOrientation, _ notificationSize : CGSize) -> CGRect {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1104:49: warning: main actor-isolated class property 'main' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
containerFrame = CGRect(x: UIScreen.main.bounds.width-notificationSize.height, y: 0, width: notificationSize.height, height: notificationSize.width)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1096:6: note: add '@MainActor' to make global function 'CRGetNotificationContainerFrame' part of global actor 'MainActor'
func CRGetNotificationContainerFrame(_ statusBarOrientation : UIInterfaceOrientation, _ notificationSize : CGSize) -> CGRect {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1106:60: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
containerFrame = CGRect(x: 0, y: UIScreen.main.bounds.height-notificationSize.height, width: notificationSize.width, height: notificationSize.height);
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:59:39: note: property declared here
@property(nonatomic,readonly) CGRect bounds; // Bounds of entire screen in points
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1096:6: note: add '@MainActor' to make global function 'CRGetNotificationContainerFrame' part of global actor 'MainActor'
func CRGetNotificationContainerFrame(_ statusBarOrientation : UIInterfaceOrientation, _ notificationSize : CGSize) -> CGRect {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1106:55: warning: main actor-isolated class property 'main' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
containerFrame = CGRect(x: 0, y: UIScreen.main.bounds.height-notificationSize.height, width: notificationSize.width, height: notificationSize.height);
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1096:6: note: add '@MainActor' to make global function 'CRGetNotificationContainerFrame' part of global actor 'MainActor'
func CRGetNotificationContainerFrame(_ statusBarOrientation : UIInterfaceOrientation, _ notificationSize : CGSize) -> CGRect {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1116:86: warning: call to main actor-isolated instance method 'snapshotView(afterScreenUpdates:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
return underStatusBar ? UIApplication.shared.keyWindow?.rootViewController?.view.snapshotView(afterScreenUpdates: true) : UIScreen.main.snapshotView(afterScreenUpdates: true)
^
UIKit.UIView.snapshotView:3:24: note: calls to instance method 'snapshotView(afterScreenUpdates:)' from outside of its actor context are implicitly asynchronous
@MainActor open func snapshotView(afterScreenUpdates afterUpdates: Bool) -> UIView?}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1115:6: note: add '@MainActor' to make global function 'CRStatusBarSnapShotView' part of global actor 'MainActor'
func CRStatusBarSnapShotView(_ underStatusBar: Bool) -> UIView? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1116:81: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return underStatusBar ? UIApplication.shared.keyWindow?.rootViewController?.view.snapshotView(afterScreenUpdates: true) : UIScreen.main.snapshotView(afterScreenUpdates: true)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:116:54: note: property declared here
@property(null_resettable, nonatomic,strong) UIView *view; // The getter first invokes [self loadView] if the view hasn't been set yet. Subclasses must call super if they override the setter or getter.
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1115:6: note: add '@MainActor' to make global function 'CRStatusBarSnapShotView' part of global actor 'MainActor'
func CRStatusBarSnapShotView(_ underStatusBar: Bool) -> UIView? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1116:61: warning: main actor-isolated property 'rootViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return underStatusBar ? UIApplication.shared.keyWindow?.rootViewController?.view.snapshotView(afterScreenUpdates: true) : UIScreen.main.snapshotView(afterScreenUpdates: true)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:66:57: note: property declared here
@property(nullable, nonatomic,strong) UIViewController *rootViewController API_AVAILABLE(ios(4.0)); // default is nil
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1115:6: note: add '@MainActor' to make global function 'CRStatusBarSnapShotView' part of global actor 'MainActor'
func CRStatusBarSnapShotView(_ underStatusBar: Bool) -> UIView? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1116:50: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return underStatusBar ? UIApplication.shared.keyWindow?.rootViewController?.view.snapshotView(afterScreenUpdates: true) : UIScreen.main.snapshotView(afterScreenUpdates: true)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: property declared here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1115:6: note: add '@MainActor' to make global function 'CRStatusBarSnapShotView' part of global actor 'MainActor'
func CRStatusBarSnapShotView(_ underStatusBar: Bool) -> UIView? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1116:43: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return underStatusBar ? UIApplication.shared.keyWindow?.rootViewController?.view.snapshotView(afterScreenUpdates: true) : UIScreen.main.snapshotView(afterScreenUpdates: true)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1115:6: note: add '@MainActor' to make global function 'CRStatusBarSnapShotView' part of global actor 'MainActor'
func CRStatusBarSnapShotView(_ underStatusBar: Bool) -> UIView? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1116:141: warning: call to main actor-isolated instance method 'snapshotView(afterScreenUpdates:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
return underStatusBar ? UIApplication.shared.keyWindow?.rootViewController?.view.snapshotView(afterScreenUpdates: true) : UIScreen.main.snapshotView(afterScreenUpdates: true)
^
UIKit.UIScreen.snapshotView:3:24: note: calls to instance method 'snapshotView(afterScreenUpdates:)' from outside of its actor context are implicitly asynchronous
@MainActor open func snapshotView(afterScreenUpdates afterUpdates: Bool) -> UIView}
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1115:6: note: add '@MainActor' to make global function 'CRStatusBarSnapShotView' part of global actor 'MainActor'
func CRStatusBarSnapShotView(_ underStatusBar: Bool) -> UIView? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1116:136: warning: main actor-isolated class property 'main' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return underStatusBar ? UIApplication.shared.keyWindow?.rootViewController?.view.snapshotView(afterScreenUpdates: true) : UIScreen.main.snapshotView(afterScreenUpdates: true)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastConfig.swift:1115:6: note: add '@MainActor' to make global function 'CRStatusBarSnapShotView' part of global actor 'MainActor'
func CRStatusBarSnapShotView(_ underStatusBar: Bool) -> UIView? {
^
@MainActor
SwiftCompile normal arm64 Compiling\ CRToastView.swift /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastView.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/CRToastSwift/CRToastView.swift (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftDriverJobDiscovery normal arm64 Emitting module for CRToastSwift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftDriver\ Compilation\ Requirements CRToastSwift normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-Swift-Compilation-Requirements -- /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name CRToastSwift -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -stats-output-dir .stats -strict-concurrency\=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk -target arm64-apple-ios12.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos18.4-22E235-339d34bc69d7fc736c3220795c36f340.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftMergeGeneratedHeaders /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos/CRToastSwift-Swift.h /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift-Swift.h (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
builtin-swiftHeaderTool -arch arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift-Swift.h -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos/CRToastSwift-Swift.h
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/arm64-apple-ios.swiftdoc /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftdoc (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftdoc /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/arm64-apple-ios.swiftdoc
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/arm64-apple-ios.swiftmodule /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftmodule (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftmodule /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/arm64-apple-ios.swiftmodule
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/arm64-apple-ios.abi.json /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.abi.json (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.abi.json /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/arm64-apple-ios.abi.json
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftsourceinfo (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftsourceinfo /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo
SwiftDriverJobDiscovery normal arm64 Compiling CRToastViewController.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftDriverJobDiscovery normal arm64 Compiling CRToastView.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftDriverJobDiscovery normal arm64 Compiling CRToastWindow.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftDriverJobDiscovery normal arm64 Compiling CRToastConfig.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftDriverJobDiscovery normal arm64 Compiling CRToastManager.swift (in target 'CRToastSwift' from project 'CRToastSwift')
SwiftDriver\ Compilation CRToastSwift normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-Swift-Compilation -- /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name CRToastSwift -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -stats-output-dir .stats -strict-concurrency\=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk -target arm64-apple-ios12.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/iphoneos18.4-22E235-339d34bc69d7fc736c3220795c36f340.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
Ld /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.o normal (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios12.0 -r -isysroot /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk -O0 -L/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -L/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -L/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos -iframework /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/Developer/Library/Frameworks -filelist /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.LinkFileList -nostdlib -Xlinker -object_path_lto -Xlinker /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift_lto.o -rdynamic -Xlinker -no_deduplicate -Xlinker -debug_variant -Xlinker -dependency_info -Xlinker /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift_dependency_info.dat -fobjc-link-runtime -L/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.swiftmodule -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.o
ExtractAppIntentsMetadata (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/appintentsmetadataprocessor --toolchain-dir /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --module-name CRToastSwift --sdk-root /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk --xcode-version 16E140 --platform-family iOS --deployment-target 12.0 --bundle-identifier spi-builder-workspace.CRToastSwift --output /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.appintents --target-triple arm64-apple-ios12.0 --binary-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.o --dependency-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift_dependency_info.dat --stringsdata-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata --source-file-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.SwiftFileList --metadata-file-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/CRToastSwift.DependencyMetadataFileList --static-metadata-file-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/CRToastSwift.DependencyStaticMetadataFileList --swift-const-vals-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/CRToastSwift.build/Debug-iphoneos/CRToastSwift.build/Objects-normal/arm64/CRToastSwift.SwiftConstValuesFileList --force --compile-time-extraction --deployment-aware-processing --validate-assistant-intents --no-app-shortcuts-localization
2025-04-24 18:58:27.231 appintentsmetadataprocessor[715:4037] Starting appintentsmetadataprocessor export
2025-04-24 18:58:27.266 appintentsmetadataprocessor[715:4037] Extracted no relevant App Intents symbols, skipping writing output
RegisterExecutionPolicyException /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.o (in target 'CRToastSwift' from project 'CRToastSwift')
cd /Users/admin/builder/spi-builder-workspace
builtin-RegisterExecutionPolicyException /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-iphoneos/CRToastSwift.o
** BUILD SUCCEEDED **
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CRToastSwift",
"name" : "CRToastSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
}
],
"products" : [
{
"name" : "CRToastSwift",
"targets" : [
"CRToastSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CRToastSwiftTests",
"module_type" : "SwiftTarget",
"name" : "CRToastSwiftTests",
"path" : "Tests/CRToastSwiftTests",
"sources" : [
"CRToastSwiftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"CRToastSwift"
],
"type" : "test"
},
{
"c99name" : "CRToastSwift",
"module_type" : "SwiftTarget",
"name" : "CRToastSwift",
"path" : "Sources/CRToastSwift",
"product_memberships" : [
"CRToastSwift"
],
"sources" : [
"CRToastConfig.swift",
"CRToastManager.swift",
"CRToastView.swift",
"CRToastViewController.swift",
"CRToastWindow.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.