Skip to content

Conversation

@Melonchanism
Copy link

In macOS Tahoe, apple seems to have removed ECMaterialLayer, causing the swizzling on that class to no longer work. Since ECMaterialLayer's superclass is CALayer, we can swizzle that instead. I also found a more modern way to determine if the CALayer, in [CALayer setFrame:] is indeed the desktop switcher, and also check if the subLayers are initialized.

I do not have access to any Macs that run older versions, and that is why I recommend that several people on older os versions test this, and if this doesn't work, then use conditional code instead.

@jalexvig
Copy link

Any update on merging this?

@Melonchanism
Copy link
Author

I have shifted back to Sequoia, and can verify that it works on there. There seems to be an issue with the loading though, so I guess that needs to get acknowledged first.

I do think that there needs to be some more work put in on detecting the amount of monitors and actually finding out which SpacesBar is on which display, and will do so if I'm not busy on other projects (prob in a month or so).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants