You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Retrieves the starting layout information for a supplementary view being inserted into the collection view.
792
-
publicoverridefunc initialLayoutAttributesForAppearingSupplementaryElement(ofKind elementKind:String, at elementIndexPath:IndexPath)->UICollectionViewLayoutAttributes?{
at elementIndexPath:IndexPath)->UICollectionViewLayoutAttributes?{
793
799
varattributes:ChatLayoutAttributes?
794
800
795
801
letkind=ItemKind(elementKind)
@@ -828,7 +834,8 @@ public final class CollectionViewChatLayout: UICollectionViewLayout {
828
834
}
829
835
830
836
/// Retrieves the final layout information for a supplementary view that is about to be removed from the collection view.
831
-
publicoverridefunc finalLayoutAttributesForDisappearingSupplementaryElement(ofKind elementKind:String, at elementIndexPath:IndexPath)->UICollectionViewLayoutAttributes?{
// We are just resetting `calculatedSize` if needed as the actual size will be found in invalidationContext(forPreferredLayoutAttributes:, withOriginalAttributes:)
60
+
// We are just resetting `calculatedSize` if needed as the actual size will be found in
0 commit comments