Skip to content

Commit

Permalink
Added size logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ekazaev committed Oct 9, 2023
1 parent 3f8700f commit 9fbbefa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChatLayout/Classes/Core/Model/StateController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ final class StateController<Layout: ChatLayoutRepresentation> {
if item.alignment != alignment {
print("ALIGNMENT CHANGE: \(item.id) \(item.alignment) -> \(alignment) ")
}
if previousFrame.size != preferredSize {
print("SIZE CHANGE: \(item.id) \(previousFrame.size) -> \(preferredSize) ")
}
item.alignment = alignment
item.calculatedSize = preferredSize
item.calculatedOnce = true
Expand Down

0 comments on commit 9fbbefa

Please sign in to comment.