@@ -30,6 +30,7 @@ public protocol ChatLayoutDelegate: AnyObject {
3030 /// - chatLayout: `CollectionViewChatLayout` reference.
3131 /// - sectionIndex: Index of the section.
3232 /// - Returns: `Bool`.
33+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
3334 func shouldPresentHeader(
3435 _ chatLayout: CollectionViewChatLayout ,
3536 at sectionIndex: Int
@@ -40,6 +41,7 @@ public protocol ChatLayoutDelegate: AnyObject {
4041 /// - chatLayout: `CollectionViewChatLayout` reference.
4142 /// - sectionIndex: Index of the section.
4243 /// - Returns: `Bool`.
44+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
4345 func shouldPresentFooter(
4446 _ chatLayout: CollectionViewChatLayout ,
4547 at sectionIndex: Int
@@ -52,6 +54,7 @@ public protocol ChatLayoutDelegate: AnyObject {
5254 /// - Returns: `Bool`.
5355 ///
5456 /// **NB:** This method will be called only if the `ChatLayoutSettings.pinnableItems` is set to `.supplementaryViews`
57+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
5558 func shouldPinHeaderToVisibleBounds(
5659 _ chatLayout: CollectionViewChatLayout ,
5760 at sectionIndex: Int
@@ -64,6 +67,7 @@ public protocol ChatLayoutDelegate: AnyObject {
6467 /// - Returns: `Bool`.
6568 ///
6669 /// **NB:** This method will be called only if the `ChatLayoutSettings.pinnableItems` is set to `.supplementaryViews`
70+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
6771 func shouldPinFooterToVisibleBounds(
6872 _ chatLayout: CollectionViewChatLayout ,
6973 at sectionIndex: Int
@@ -176,6 +180,7 @@ public protocol ChatLayoutDelegate: AnyObject {
176180/// Default extension.
177181public extension ChatLayoutDelegate {
178182 /// Default implementation returns: `false`.
183+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
179184 func shouldPresentHeader(
180185 _ chatLayout: CollectionViewChatLayout ,
181186 at sectionIndex: Int
@@ -184,6 +189,7 @@ public extension ChatLayoutDelegate {
184189 }
185190
186191 /// Default implementation returns: `false`.
192+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
187193 func shouldPresentFooter(
188194 _ chatLayout: CollectionViewChatLayout ,
189195 at sectionIndex: Int
@@ -192,6 +198,7 @@ public extension ChatLayoutDelegate {
192198 }
193199
194200 /// Default implementation returns: `false`.
201+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
195202 func shouldPinHeaderToVisibleBounds(
196203 _ chatLayout: CollectionViewChatLayout ,
197204 at sectionIndex: Int
@@ -208,6 +215,7 @@ public extension ChatLayoutDelegate {
208215 }
209216
210217 /// Default implementation returns: `false`.
218+ @available ( * , deprecated, message: " Support for supplementary views is deprecated and will be discontinued in future versions. " )
211219 func shouldPinFooterToVisibleBounds(
212220 _ chatLayout: CollectionViewChatLayout ,
213221 at sectionIndex: Int
0 commit comments