Programmatically overriding Liquid Glass dock icon?

Hello,

I recently updated my app’s icon to use the new Liquid Glass style by adding an .icon file created with Icon Composer to my project.

Previously, I had two image sets (light and dark versions of the app icon), and I’d implemented a settings option that let users either manually select their preferred icon, or let the app automatically switch between light/dark based on the system appearance. Is there a way to achieve the same behavior with the new Liquid Glass .icon file?Specifically, can I programmatically override the system-selected Liquid Glass dock icon and force a particular variant?

Thank you.

Programmatically overriding Liquid Glass dock icon?
 
 
Q