Swift how to implement macOS Finder's file downloading progress on file

it's looks like this https://ibb.co/JysCH5v

https://ibb.co/JysCH5v

https://ibb.co/H45b9xN


I've reference from here

Can you implement OS X's Finder download progress bars from a shell script?

and here

https://gist.github.com/mminer/3c0fbece956f3a5fa795563fafb139ae


but both of them not work,

Finder's file progress not show up, and nothing happen,

I'v intend to implement like safari file download, or google chrome file download effect, every individual file will have progress bar on it, until file completed,

I'm not mean update progress on my own app view, it's on finder's file

I'm in macOS 10.14.5, Swift5

am I missing something?

Thank you!

Replies

Please don't show the references alone. Show your actual code.