I use a UIView for NSTextAttachmentViewProvider to render the attachment and then use the UIDragItem.previewProvider to return a UIDragPreview with the UIView.
This works but the delegate which returns the UIDragPreview is only called after the initial drag image is shown.
If you use an image for NSTextAttachment then you get the correct initial drag image but for the view from NSTextAttachmentViewProvider it always uses this ugly default image which I need to remove.
Does anyone know how to do this? I found no example code on how NSTextAttachmentViewProvider and drag and drop is supposed to work so I can't say how this is supposed to work or if it's a TextKit 2 bug etc...
Thanks!
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm having a reproducible problem receiving push notifications on macOS 26.2.
The pattern is that the push is received and then discarded almost immediately (there is a 60s expiration date) when on battery power and then when I plug in pushes start working and even if I unplug again it works for hours until breaking again.
These are alert notifications with priority 10.
Other team members have had similar problems but less reliably broken and even get a "stored for device power considerations" message followed by discarded (see apns-unique-id c29250a3-abbf-008a-96f9-a5384e32d1df).
An example from my machine with the apns-unique-id 6b2dfe3d-af99-182a-0e1e-6b811d3ec486 which fails immediately.
iOS is working fine however so this seems to be confined to macOS only.