3 ms·
For anyone who's wondering how it works: key line of code seems to be here (https://github.com/dwarvesf/hidden/blob/develop/hidden/ViewControlllers/StatusBarCon
by gtmtg 7y ago
For anyone who's wondering how it works: key line of code seems to be here (https://github.com/dwarvesf/hidden/blob/develop/hidden/ViewControlllers/StatusBarController.swift#L102 https://github.com/dwarvesf/hidden/blob/develop/hidden/ViewC...), where they make the "separator" element really wide to push the icons to be hidden offscreen.
- tyingq 7y agoApparently that trick is used in other, similar tools: https://github.com/Mortennn/Dozer/blob/master/Dozer/StatusIconClasses/HelperStatusIcon.swift#L10 https://github.com/Mortennn/Dozer/blob/master/Dozer/StatusIc...
- btown 7y agoSo I imagine then that this relies on operating system behavior that says "show as many icons as we can fit, if we go over our limit hide the rest and right-justify the ones that did fit" - so therefore by controlling the width they can change that breakpoint?