Animate attachment rows in when picking assets

This commit is contained in:
Shadowfacts 2021-05-13 22:34:26 -04:00
parent dabcae0905
commit c78f152670
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 1 deletions

View File

@ -288,8 +288,10 @@ extension ComposeHostingController: AssetPickerViewControllerDelegate {
let attachments = attachments.map { let attachments = attachments.map {
CompositionAttachment(data: $0) CompositionAttachment(data: $0)
} }
withAnimation {
draft.attachments.append(contentsOf: attachments) draft.attachments.append(contentsOf: attachments)
} }
}
} }
extension ComposeHostingController: DraftsTableViewControllerDelegate { extension ComposeHostingController: DraftsTableViewControllerDelegate {