From 7057fbc75788314722cedbb45fdda64e43c13e5e Mon Sep 17 00:00:00 2001 From: Calvin Chang Date: Thu, 13 Jun 2024 18:45:38 +0200 Subject: [PATCH 1/2] public the layout provider for checking the layout --- SectionKit/Sources/SectionController/SectionController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 918c9c67511172c1bdd9b0c6d523c5c2b9f14a31 Mon Sep 17 00:00:00 2001 From: Calvin Chang Date: Thu, 13 Jun 2024 18:45:50 +0200 Subject: [PATCH 2/2] clean up --- .../EmojisSectionControllerSnapshotTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)