uivisualeffectview

Less Blur with `Visual Effect View with Blur`?

那年仲夏 提交于 2019-11-28 22:23:59
问题 Title pretty much asks it all... I'm playing with the iOS8 Visual Effect View with Blur . It's over a UIImageView that shows a user choosable background photo. The view placed in the contentView itself is my own custom view, shows a sort of graph/calendar. Most of said calendar graph is transparent. The blur it applies to the photo behind it is really heavy. I'd like to let more of the detail leak through. But Apple only seems to give three canned values: typedef enum {

How to fade a UIVisualEffectView and/or UIBlurEffect in and out?

北城以北 提交于 2019-11-28 15:33:37
I want to fade a UIVisualEffectsView with a UIBlurEffect in and out: var blurEffectView = UIVisualEffectView() blurEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .dark)) I use a normal animation within a function called by a UIButton to fade it in, same for fading out but .alpha = 0 & hidden = true : blurEffectView.hidden = false UIView.animate(withDuration: 1, delay: 0, options: .curveEaseOut) { self.blurEffectView.alpha = 1 } Now, fading in both directions does work but it gives me an error when fading out : <UIVisualEffectView 0x7fdf5bcb6e80> is being asked to animate its

UIVisualEffectView with mask layer

假如想象 提交于 2019-11-27 19:29:43
I am trying to blur a MKMapView while also displaying a circle mask above it. To better visualize what I mean with this you can find an image of my current state attached: This shows nearly what I want but the background (the map) should be blurred which is not the case in this picture. I tried to work with UIVisualEffectView, but it seems I am doing something wrong there. Here is what I tried: func createOverlay(at: CGPoint) { var blur: UIView! blur = UIVisualEffectView (effect: UIBlurEffect (style: UIBlurEffectStyle.dark)) blur.frame = self.mapView.frame blur.isUserInteractionEnabled = false

UIVisualEffectView with mask layer

淺唱寂寞╮ 提交于 2019-11-26 19:53:15
问题 I am trying to blur a MKMapView while also displaying a circle mask above it. To better visualize what I mean with this you can find an image of my current state attached: This shows nearly what I want but the background (the map) should be blurred which is not the case in this picture. I tried to work with UIVisualEffectView, but it seems I am doing something wrong there. Here is what I tried: func createOverlay(at: CGPoint) { var blur: UIView! blur = UIVisualEffectView (effect: UIBlurEffect

How to use UIVisualEffectView to Blur Image?

旧城冷巷雨未停 提交于 2019-11-26 12:35:24
Could someone give a small example of applying the blur to an image? I've been trying to figure out the code for a while now :( still new at obj c! The UIVisualEffectView provides a simple abstraction over complex visual effects. Depending on the desired effect, the results may affect content layered behind the view or content added to the view’s contentView. Apply a UIVisualEffectView to an existing view to apply a blur or vibrancy effect to the exiting view. After you add the UIVisualEffectView to the view hierarchy, add any subviews to the contentView of the UIVisualEffectView . Do not add

How to use UIVisualEffectView to Blur Image?

只愿长相守 提交于 2019-11-26 03:00:26
问题 Could someone give a small example of applying the blur to an image? I\'ve been trying to figure out the code for a while now :( still new at obj c! The UIVisualEffectView provides a simple abstraction over complex visual effects. Depending on the desired effect, the results may affect content layered behind the view or content added to the view’s contentView. Apply a UIVisualEffectView to an existing view to apply a blur or vibrancy effect to the exiting view. After you add the