mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-23 22:10:29 +00:00
Fix infinite reload
This commit is contained in:
parent
86b6fffc7c
commit
79004130de
1 changed files with 6 additions and 1 deletions
|
@ -169,7 +169,12 @@ private extension AnnouncementView {
|
||||||
snapshot.appendItems(viewModel.announcement.reactions, toSection: 0)
|
snapshot.appendItems(viewModel.announcement.reactions, toSection: 0)
|
||||||
|
|
||||||
if snapshot.itemIdentifiers != dataSource.snapshot().itemIdentifiers {
|
if snapshot.itemIdentifiers != dataSource.snapshot().itemIdentifiers {
|
||||||
dataSource.apply(snapshot, animatingDifferences: false) { viewModel.reload() }
|
dataSource.apply(snapshot, animatingDifferences: false) {
|
||||||
|
if self.contentTextView.frame.size == .zero
|
||||||
|
|| self.contentTextView.contentSize.height < self.contentTextView.frame.height {
|
||||||
|
viewModel.reload()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue