Skip to content

Commit d1ec08b

Browse files
committed
Minor fix for keepContentAtBottomOfVisibleArea
1 parent 391b09c commit d1ec08b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ChatLayout.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'ChatLayout'
3-
s.version = '2.1.0'
3+
s.version = '2.1.1'
44
s.summary = 'Chat UI Library. It uses custom UICollectionViewLayout to provide you full control over the presentation.'
55
s.swift_version = '5.10'
66

ChatLayout/Classes/Core/Model/StateController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,7 @@ final class StateController<Layout: ChatLayoutRepresentation> {
677677

678678
if layoutRepresentation.keepContentAtBottomOfVisibleArea == true,
679679
!(kind == .header && itemPath.section == 0),
680+
!isPinnedItem(indexPath: itemPath.indexPath, kind: kind),
680681
!isLayoutBiggerThanVisibleBounds(at: state, withFullCompensation: false, visibleBounds: visibleBounds) {
681682
itemFrame.offsettingBy(dx: 0, dy: visibleBounds.height.rounded() - contentSize(for: state).height.rounded())
682683
}

Example/Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PODS:
2-
- ChatLayout (2.1.0):
3-
- ChatLayout/Ultimate (= 2.1.0)
4-
- ChatLayout/Core (2.1.0)
5-
- ChatLayout/Extras (2.1.0):
2+
- ChatLayout (2.1.1):
3+
- ChatLayout/Ultimate (= 2.1.1)
4+
- ChatLayout/Core (2.1.1)
5+
- ChatLayout/Extras (2.1.1):
66
- ChatLayout/Core
7-
- ChatLayout/Ultimate (2.1.0):
7+
- ChatLayout/Ultimate (2.1.1):
88
- ChatLayout/Core
99
- ChatLayout/Extras
1010
- DifferenceKit (1.3.0):
@@ -35,7 +35,7 @@ EXTERNAL SOURCES:
3535
:path: "../"
3636

3737
SPEC CHECKSUMS:
38-
ChatLayout: 6668e3c1df79e3762cf45b531cda22fe71234822
38+
ChatLayout: 7de79979af9413244720f856d974c480345d5a60
3939
DifferenceKit: ab185c4d7f9cef8af3fcf593e5b387fb81e999ca
4040
FPSCounter: 884afec377de66637808c4f52ecc3b85a404732b
4141
InputBarAccessoryView: 1d7b0a672b36e370f01f264b3907ef39d03328e3

0 commit comments

Comments
 (0)