Fix expand focused attachment animation not working

public-beta
Shadowfacts 2 weeks ago
parent a309b041bf
commit 4b16a69275

@ -339,8 +339,10 @@ public final class ComposeController: ViewController {
}, message: { error in
Text(error.localizedDescription)
})
.matchedGeometryPresentation(id: Binding(get: {
controller.focusedAttachment?.0.id
.matchedGeometryPresentation(id: Binding(get: { () -> UUID?? in
let id = controller.focusedAttachment?.0.id
// this needs to be a double optional, since the type used for for the presentationID in the geom source is a UUID?
return id.map { Optional.some($0) }
}, set: {
if $0 == nil {
controller.focusedAttachment = nil

Loading…
Cancel
Save