-
Notifications
You must be signed in to change notification settings - Fork 7
unpackAsQDPoint crash #4
Copy link
Copy link
Closed
Description
unpackAsQDPoint crashes at:
let point: Rect = descriptor.data.withUnsafeBytes { buffer in
buffer.bindMemory(to: Rect.self)[0]
The fix is to replace "Rect" with "Point" at two places in that line.
This can be tested by targeting Finder, which uses a point for its "desktop position" folder property:
let finder = Finder()
print("TEST: get desktop position of folder "TEMP"")
print(try finder.folders["TEMP"].desktopPosition.get()) // [2301, 554]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels