Skip to content

Commit

Permalink
Fixed XCode 16.1 beta compiler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ekazaev committed Aug 19, 2024
1 parent ff10477 commit 49b2ca3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ChatLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pod::Spec.new do |s|
s.name = 'ChatLayout'
s.version = '2.0.9'
s.version = '2.0.10'
s.summary = 'Chat UI Library. It uses custom UICollectionViewLayout to provide you full control over the presentation.'
s.swift_version = '5.8'
s.swift_version = '5.10'

s.description = <<-DESC
ChatLayout is a Chat UI Library. It uses custom UICollectionViewLayout to provide you full control over the
Expand Down
1 change: 1 addition & 0 deletions ChatLayout/Classes/Core/CollectionViewChatLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ open class CollectionViewChatLayout: UICollectionViewLayout {
// Items
var items: ContiguousArray<ItemModel> = section.items
items.withUnsafeMutableBufferPointer { directlyMutableItems in
nonisolated(unsafe) let directlyMutableItems = directlyMutableItems
DispatchQueue.concurrentPerform(iterations: directlyMutableItems.count) { rowIndex in
directlyMutableItems[rowIndex].resetSize()
}
Expand Down
1 change: 1 addition & 0 deletions ChatLayout/Classes/Core/Model/LayoutModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ final class LayoutModel<Layout: ChatLayoutRepresentation> {
if index < sections.count &- 1 {
let nextIndex = index &+ 1
sections.withUnsafeMutableBufferPointer { directlyMutableSections in
nonisolated(unsafe) let directlyMutableSections = directlyMutableSections
DispatchQueue.concurrentPerform(iterations: directlyMutableSections.count &- nextIndex) { internalIndex in
directlyMutableSections[internalIndex &+ nextIndex].offsetY += heightDiff
}
Expand Down
1 change: 1 addition & 0 deletions ChatLayout/Classes/Core/Model/SectionModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ struct SectionModel<Layout: ChatLayoutRepresentation> {
if index < items.count &- 1 {
let nextIndex = index &+ 1
items.withUnsafeMutableBufferPointer { directlyMutableItems in
nonisolated(unsafe) let directlyMutableItems = directlyMutableItems
DispatchQueue.concurrentPerform(iterations: directlyMutableItems.count &- nextIndex) { internalIndex in
directlyMutableItems[internalIndex &+ nextIndex].offsetY += heightDiff
}
Expand Down
12 changes: 6 additions & 6 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PODS:
- ChatLayout (2.0.5):
- ChatLayout/Ultimate (= 2.0.5)
- ChatLayout/Core (2.0.5)
- ChatLayout/Extras (2.0.5):
- ChatLayout (2.0.9):
- ChatLayout/Ultimate (= 2.0.9)
- ChatLayout/Core (2.0.9)
- ChatLayout/Extras (2.0.9):
- ChatLayout/Core
- ChatLayout/Ultimate (2.0.5):
- ChatLayout/Ultimate (2.0.9):
- ChatLayout/Core
- ChatLayout/Extras
- DifferenceKit (1.3.0):
Expand Down Expand Up @@ -35,7 +35,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
ChatLayout: 73e77fd1d5f3ea46dfee7045804d00116395bf04
ChatLayout: 5c1b251ead6443c7cac14a16fc77822b2225e32e
DifferenceKit: ab185c4d7f9cef8af3fcf593e5b387fb81e999ca
FPSCounter: 884afec377de66637808c4f52ecc3b85a404732b
InputBarAccessoryView: 1d7b0a672b36e370f01f264b3907ef39d03328e3
Expand Down

0 comments on commit 49b2ca3

Please sign in to comment.