Skip to content

Instantly share code, notes, and snippets.

View angpysha's full-sized avatar
👋

Andrii angpysha

👋
  • EPAM
View GitHub Profile
@angpysha
angpysha / BackdropView.swift
Created April 2, 2022 07:42 — forked from avaidyam/BackdropView.swift
DIY NSVisualEffectView using Private API for macOS
// TODO: setting window transforms (or mission control) flattens layers...
// TODO: Mask image vs path (layer)?
/// `NSVisualEffectView`:
///
/// A view that adds translucency and vibrancy effects to the views in your interface.
/// When you want views to be more prominent in your interface, place them in a
/// backdrop view. The backdrop view is partially transparent, allowing some of
/// the underlying content to show through. Typically, you use a backdrop view
/// to blur background content, instead of obscuring it completely. It can also