fix: content offset not take effect issue in compose scene

This commit is contained in:
CMK 2021-06-21 17:53:06 +08:00
parent 2c2aa127bf
commit e753da5ca4
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ extension ComposeViewModel {
snapshot.appendItems([.input(replyToStatusObjectID: nil, attribute: composeStatusAttribute)], toSection: .status)
}
diffableDataSource.apply(snapshot, animatingDifferences: false)
// some magic fix modal presentation animation issue
collectionView.dataSource = diffableDataSource
}
func setupCustomEmojiPickerDiffableDataSource(