Ilja desires to attract extra consideration to this query.
Contemplate following simplified code for a component that may be dragged
HStack {
Icon(icon: .iconDrag)
Textual content(“Title”)
Spacer()
}
.padding(16)
.onDrag {
return NSItemProvider(object: id.uuidString as NSString)
}
This ends in conduct beneath, the place as soon as drag begins preview factor is proven, however it’s a fraction of a measurement from unique factor and has transparency.
I attempted including preview : {} to onDrag with identical unique factor duplicate, nevertheless it’s measurement remains to be inaccurate and it has transparency. Is there a strategy to prolong a preview by some means (say with uikit) in order that it stays precisely the identical as unique factor? I consider there’s a most width of preview factor at which level it begins shrinking down maybe?