Skip to content

Commit 0576ac9

Browse files
committed
Fixed potential model synchroniczation issue
1 parent b84bdd8 commit 0576ac9

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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.0.12'
3+
s.version = '2.0.13'
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ final class StateController<Layout: ChatLayoutRepresentation> {
572572
batchUpdateCompensatingOffset = 0
573573
proposedCompensatingOffset = 0
574574

575-
var afterUpdateModel = LayoutModel(sections: layoutBeforeUpdate.sections,
576-
collectionLayout: layoutRepresentation)
575+
var afterUpdateModel = layoutAfterUpdate ?? LayoutModel(sections: layoutBeforeUpdate.sections, collectionLayout: layoutRepresentation)
576+
577577
resetCachedAttributeObjects()
578578

579579
var reloadedSectionsIndexesArray = [Int]()

Example/ChatLayout.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
183183
607FACEB1AFB9204008FA782 /* StateControllerProcessUpdatesTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StateControllerProcessUpdatesTests.swift; sourceTree = "<group>"; };
184184
7878AA33F3C696DE4A57C8C1 /* Pods-ChatLayout_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChatLayout_Tests.release.xcconfig"; path = "Target Support Files/Pods-ChatLayout_Tests/Pods-ChatLayout_Tests.release.xcconfig"; sourceTree = "<group>"; };
185-
A7BC3E7EC6986752E73178A2 /* ChatLayout.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ChatLayout.podspec; path = ../ChatLayout.podspec; sourceTree = "<group>"; };
185+
A7BC3E7EC6986752E73178A2 /* ChatLayout.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ChatLayout.podspec; path = ../ChatLayout.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
186186
B20283D68C00BDE38B8AB8BE /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
187187
B520747F8C032C454221D1EC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
188188
BDD575DC427C1961B83F685C /* Pods-ChatLayout_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChatLayout_Example.release.xcconfig"; path = "Target Support Files/Pods-ChatLayout_Example/Pods-ChatLayout_Example.release.xcconfig"; sourceTree = "<group>"; };

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.0.10):
3-
- ChatLayout/Ultimate (= 2.0.10)
4-
- ChatLayout/Core (2.0.10)
5-
- ChatLayout/Extras (2.0.10):
2+
- ChatLayout (2.0.13):
3+
- ChatLayout/Ultimate (= 2.0.13)
4+
- ChatLayout/Core (2.0.13)
5+
- ChatLayout/Extras (2.0.13):
66
- ChatLayout/Core
7-
- ChatLayout/Ultimate (2.0.10):
7+
- ChatLayout/Ultimate (2.0.13):
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: 004369aa1d00f6490660980c1af48a546388ea2e
38+
ChatLayout: a2ed626da75cb824b7f14f28215c6717cd8cb108
3939
DifferenceKit: ab185c4d7f9cef8af3fcf593e5b387fb81e999ca
4040
FPSCounter: 884afec377de66637808c4f52ecc3b85a404732b
4141
InputBarAccessoryView: 1d7b0a672b36e370f01f264b3907ef39d03328e3

0 commit comments

Comments
 (0)