Back to News
Advertisement
ddbm5 about 8 hours ago 0 commentsRead Article on github.com

DE version is available. Content is displayed in original English for accuracy.

SpinWin is an open source menu bar app to visually rotate any individual window. You can rotate / spin as many as you want one by one.

I was scrolling reels when one came on where the content creator suggested "turning the phone upside down" for a portion. I was sitting at my mac, and decided to see if I could find something that did this. To my surprise, nothing exists, so I decided to build it.

Turns out macOS doesn't provide any public API to do anything like this, so I wound up using the Accessibility API to move the target window offscreen, where it keeps rendering. Then we capture it's contents with ScreenCaptureKit, and display that on a transparent, borderless overlay window which has a CALayer to rotate it.

It's written in Swift, open source, MIT license, and signed/notarized.

Have fun - would love to hear your comments.

Advertisement

Discussion (0 Comments)Read Original on HackerNews

No comments available or they could not be loaded.