How do you use Visual Effect Views with Blur and Vibrancy in Interface Builder?
I've dragged this item out into the View, then dragged a UILabel
onto the last view in the hierarchy - the vibrant effect's contentView
I assume. This results in a blurred view overtop but there is no label visible. Anywhere else I place the label in the hierarchy it does become visible but it's just solid black text.
Apply a visual effect view to an existing view and then apply a UIBlurEffect or UIVibrancyEffect object to apply a blur or vibrancy effect to the existing view. After you add the visual effect view to the view hierarchy, add any subviews to the contentView property of the visual effect view.
Finally figured it out.
UIViewController
change the view's background to blueUILabel
into the scene as a subview of the last ViewVoila!
And this is how it looks in Interface Builder:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With