Skip to content

Commit

Permalink
improve assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinChangCC committed May 22, 2024
1 parent 1ae6656 commit 1545811
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final public class SectionKitCompositionalLayout: UICollectionViewCompositionalL
var sections: (() -> [Section])?
super.init { index, environment in
guard let sections = sections?() else {
assertionFailure("The section update closure doesn't set up correctly, please check the `CollectionViewAdapter`")
assertionFailure("The section update closure doesn't set up correctly, please use the `CollectionViewAdapter`")
return .empty
}
guard sections.count > index else {
Expand Down

0 comments on commit 1545811

Please sign in to comment.