Skip to content

carabina/NSVisualEffectView-Tint

 
 

Repository files navigation

Overview

I'm trying to change the tint of the NSVisualEffectView. This is what I've come up with. Send me a pull request if you know a better way.

Tintend visual effect view

Tinting

  1. Add a new NSVisualEffectView to your main window.
  2. Enable layer backing.
  3. Loop through the layers and change the backgroundColor of the layer called 'ClearCopyLayer'.

No science behind this method.

Known Issues

Changing the materialfrom light to dark or vice versa removes the custom backgroundColor. Even if it's applied after changing the material.

License

MIT License, see LICENSE for details.

About

Experiment(s) to try and tint an NSVisualEffectView.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%