Glur
Glur copied to clipboard
Add noise, RTL support and other fixes
This pull request adds:
- A new
noise
parameter to the.glur()
modifier that lets you specify an amount of noise for the blur effect. The noise is applied through anoverlay
blending mode. - It also adds
leading
andtrailing
as notation options for theBlurDirection
enum. These options are evaluated at runtime and depend on the user's locale. - Additionally, this pull request uses the view's SwiftUI size to calculate the blur gradient instead of the texture size. This should lead to a more uniform effect across platforms and display densities.
It fixes #10.