SwiftUIBlurView icon indicating copy to clipboard operation
SwiftUIBlurView copied to clipboard

Make it possible to add subviews to `BlurView`

Open danielsaidi opened this issue 6 years ago • 3 comments

BlurView currently creates and embeds a UIKit view, to which the blur effect is applied, but it doesn't allow you to add subviews to it. This means that you have to use ZStacks to build a set of layers. Maybe subviews would simplify things?

danielsaidi avatar Sep 14 '19 13:09 danielsaidi

What about changing the repo/package name to simply 'BlurView' if I implement this issue? SwiftUI prefix somehow bugs me :D

nidegen avatar Jan 10 '20 13:01 nidegen

Hahaha, I find it convenient to have all SwiftUI related imports together, e.g.

import SwiftUI
import SwiftUIBlurView

BlurView could be anything :D

danielsaidi avatar Jan 10 '20 15:01 danielsaidi

Fair point:) Too bad there's nothing like module extension;)

nidegen avatar Jan 10 '20 17:01 nidegen