lukakerr / NSWindowStyles

A showcase of the many different styles of windows possible with NSWindow on macOS
https://lukakerr.github.io/swift/nswindow-styles
Apache License 2.0
1.12k stars 40 forks source link

Example of a multiple view #6

Open un33k opened 1 year ago

un33k commented 1 year ago

I'm wondering if it's possible to have two views in an app - a container view and a child view - where the container view is fully transparent with clickthrough enabled, and the child view has full control over its own transparency.

I'm specifically interested in this for an app written in Flutter that's running on macOS. Ideally, I'd like the Flutter app to have full control over its own transparency, even if the container view is set to transparent.

Right now, setting the transparency in swift, make the Flutter app transparent as well.

If anyone has an example of how to achieve this, I would greatly appreciate it.

Here is a ref stackoverflow