Skip to content

Commit

Permalink
footerReferenceSize for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Apr 29, 2024
1 parent 5e1ac46 commit 48f28f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/CommonAppleKit/CAListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ open class CAListView<
public var footerReferenceSize: CGSize {
didSet {
(self.collectionViewLayout as? CACollectionViewFlowLayout)?.footerReferenceSize = footerReferenceSize
// self.collectionViewLayout.invalidateLayout()
}
}

Expand Down
2 changes: 2 additions & 0 deletions Sources/CommonAppleKit/CAScrollableListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ open class CAScrollableListView<
}
}

public var footerReferenceSize: CGSize = .zero

public init(
frame: CGRect,
itemSize: CGSize,
Expand Down
1 change: 1 addition & 0 deletions Tests/CommonAppleKitTests/CommonAppleKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ final class CommonAppleKitTests: XCTestCase {
height: 400
)
)
listView.footerReferenceSize = .init(width: 200, height: 100)
listView.content = [1, 2]
}
}
Expand Down

0 comments on commit 48f28f4

Please sign in to comment.