Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Main Actor warnings #113

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

CalvinChangCC
Copy link
Contributor

The XCTestCase is not a Main Actor, inheriting it and adding the MainActor property wrapper will cause the error after Swift 6

…in-actor-warnings

# Conflicts:
#	SectionKit/Tests/SectionController/SectionFlowDelegate/BaseFlowLayoutSectionControllerSectionFlowDelegateTests.swift
#	SectionKit/Tests/SectionController/SectionFlowDelegate/BaseFlowLayoutSectionFlowDelegateTests.swift
#	SectionKit/Tests/SectionController/SectionFlowDelegate/ProtocolDefaultValuesSectionFlowDelegateTests.swift
guard Self.self === BaseCollectionViewAdapterUICollectionViewDataSourceTests.self else { return }
throw XCTSkip("Tests from base class are skipped")
}

internal func createCollectionView(
func createCollectionView(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoudn't @mainactor be present here?

Base automatically changed from Foundation-set-up-for-compositional-layout to Compositional-layout-support April 16, 2024 22:12
# Conflicts:
#	SectionKit.xcodeproj/project.pbxproj
@CalvinChangCC CalvinChangCC merged commit 4198742 into Compositional-layout-support Apr 16, 2024
1 check passed
@CalvinChangCC CalvinChangCC deleted the Fix-main-actor-warnings branch April 16, 2024 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants