Skip to content

Releases: daprice/Variablur

v2.0.0

21 Nov 20:12

Choose a tag to compare

  • Blur radius adjusted so that areas where the mask is fully opaque will match SwiftUI’s built-in blur(radius:) effect. If you were using Variablur 1.x, you’ll need to divide your radius by 2 to get the same behavior in 2.0.
  • The standard deviation of the gaussian function used within the shader was adjusted to fit more of the bell curve within the sampling area, making the blur smoother.
  • A new normalizeEdges parameter lets you choose whether the edges of the view’s frame will be blurred (normalizeEdges: true, same as the old behavior) or not (normalizeEdges: false). If the view you apply the effect to is opaque, normalizing the edges will prevent any of the background behind it from showing through. This is similar to setting opaque: true on SwiftUI’s built in blur effect.

v1.1.0

08 Dec 21:10

Choose a tag to compare

  • Improve documentation.
  • Use UV coordinates for sampling the mask image; the mask no longer has to be the same size as the view the effect is applied to.
  • Add a version of the modifier that takes an Image directly.
  • Note: the prioritizeVerticalPass parameter has been renamed to verticalPassFirst.

This version of the code is now included in the project that inspired it, Paul Hudson’s Inferno shader pack.

v1.0.0

23 Nov 01:33

Choose a tag to compare

Initial release