We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ba803 commit 2b13a31Copy full SHA for 2b13a31
ChatLayout/Classes/Core/Model/StateController.swift
@@ -109,9 +109,9 @@ final class StateController<Layout: ChatLayoutRepresentation> {
109
let locationHeight: CGFloat?
110
switch state {
111
case .beforeUpdate:
112
- locationHeight = layoutBeforeUpdate.sections.withUnsafeBufferPointer({ $0.last?.locationHeight })
+ locationHeight = layoutBeforeUpdate.sections.withUnsafeBufferPointer { $0.last?.locationHeight }
113
case .afterUpdate:
114
- locationHeight = layoutAfterUpdate?.sections.withUnsafeBufferPointer({ $0.last?.locationHeight })
+ locationHeight = layoutAfterUpdate?.sections.withUnsafeBufferPointer { $0.last?.locationHeight }
115
}
116
117
guard let locationHeight = locationHeight else {
0 commit comments