diff --git a/Example/ReactiveSwiftExamples/Tests/ReactiveSwiftExamplesSnapshotTests/EmojisSectionControllerSnapshotTests.swift b/Example/ReactiveSwiftExamples/Tests/ReactiveSwiftExamplesSnapshotTests/EmojisSectionControllerSnapshotTests.swift index c1d6bd46..b4d993a0 100644 --- a/Example/ReactiveSwiftExamples/Tests/ReactiveSwiftExamplesSnapshotTests/EmojisSectionControllerSnapshotTests.swift +++ b/Example/ReactiveSwiftExamples/Tests/ReactiveSwiftExamplesSnapshotTests/EmojisSectionControllerSnapshotTests.swift @@ -3,8 +3,8 @@ import SnapshotTesting import TestUtilities import XCTest -@MainActor final class EmojisSectionControllerSnapshotTests: XCTestCase { + @MainActor func testDefaultViewModel() { let sectionController = EmojisSectionController(model: EmojisViewModel()) let container = SectionSnapshotContainer(sectionController: sectionController, width: 375) diff --git a/SectionKit/Sources/SectionController/SectionController.swift b/SectionKit/Sources/SectionController/SectionController.swift index 88cd4834..0d7141b4 100644 --- a/SectionKit/Sources/SectionController/SectionController.swift +++ b/SectionKit/Sources/SectionController/SectionController.swift @@ -64,7 +64,7 @@ public struct CompositionalLayoutProvider { /// - Parameters: /// - layoutEnvironment: the environment value for the layout /// - Returns: The layout for the section - var layoutSectionProvider: (_ layoutEnvironment: NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection + public let layoutSectionProvider: (_ layoutEnvironment: NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection public init( layoutSectionProvider: @escaping (any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection