@@ -19,7 +19,7 @@ import XCTest
1919final class ContentInsetAdjustingContentOffsetTests : XCTestCase {
2020
2121 func testContentOffsetIsNotAdjustedForTopInsetChangeWithToTopBottomLayout( ) {
22- let layout = MagazineLayout ( verticalLayoutDirection : . topToBottom )
22+ let layout = MagazineLayout ( )
2323 let collectionView = StubCollectionView (
2424 frame: . zero,
2525 collectionViewLayout: layout)
@@ -33,7 +33,8 @@ final class ContentInsetAdjustingContentOffsetTests: XCTestCase {
3333 }
3434
3535 func testContentOffsetIsAdjustedForTopInsetChangeWithBottomToTopLayout( ) {
36- let layout = MagazineLayout ( verticalLayoutDirection: . bottomToTop)
36+ let layout = MagazineLayout ( )
37+ layout. verticalLayoutDirection = . bottomToTop
3738 let collectionView = StubCollectionView (
3839 frame: . zero,
3940 collectionViewLayout: layout)
@@ -47,7 +48,8 @@ final class ContentInsetAdjustingContentOffsetTests: XCTestCase {
4748 }
4849
4950 func testContentOffsetIsAdjustedForBottomInsetChangeWithBottomToTopLayout( ) {
50- let layout = MagazineLayout ( verticalLayoutDirection: . bottomToTop)
51+ let layout = MagazineLayout ( )
52+ layout. verticalLayoutDirection = . bottomToTop
5153 let collectionView = StubCollectionView (
5254 frame: . zero,
5355 collectionViewLayout: layout)
@@ -61,7 +63,8 @@ final class ContentInsetAdjustingContentOffsetTests: XCTestCase {
6163 }
6264
6365 func testContentOffsetIsAdjustedForTopAndBottomInsetChangesWithBottomToTopLayout( ) {
64- let layout = MagazineLayout ( verticalLayoutDirection: . bottomToTop)
66+ let layout = MagazineLayout ( )
67+ layout. verticalLayoutDirection = . bottomToTop
6568 let collectionView = StubCollectionView (
6669 frame: . zero,
6770 collectionViewLayout: layout)
0 commit comments