uivisualeffectview

Blur UITextView's text

自古美人都是妖i 提交于 2020-11-29 19:22:03
问题 I'm using VisualEffectView GitHub library to blur the text of UItextView but I want to blur text, not the whole view. As you see in the image when applying an effect, we are able to see the edges of the view. Can anyone help me out with how to achieve this by using the VisualEffectView library or any other techniques? Any help would be appreciated. Code: var visualEffectViewDescription = VisualEffectView() visualEffectViewDescription.frame = self.descriptionOfWorkout.bounds

UIAlertController Action Sheet without Blurry View Effect

ぐ巨炮叔叔 提交于 2020-01-13 04:41:08
问题 I'm using UIAlertController for some actions. But I'm not a big fan of the Blurry View Effect in the actions group view (see screenshot below). I'm trying to remove this blurry effect. I made some research online, and I couldn't find any API in UIAlertController that allows to remove this blurry effect. Also, according to their apple doc here : The UIAlertController class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not

UIVisualEffectView creates a grey box instead of blurring

匆匆过客 提交于 2019-12-23 19:41:17
问题 I'm using a UIVisualEffectView to blur a section of the screen in SpriteKit like so: let blur:UIBlurEffect = UIBlurEffect(style: UIBlurEffectStyle.Dark) let UIEffectView:UIVisualEffectView = UIVisualEffectView(effect: blur) UIEffectView.frame = CGRectMake(0, 0, frame.width, frame.height * 0.15) self.view?.addSubview(UIEffectView) But it appears as a grey shaded area instead of a blur. Strangely, it blurs whilst the GameCenter notification shows at the start, saying "Welcome back, (player)" -

iOS 8 vibrancy image not showing on device

寵の児 提交于 2019-12-20 03:44:10
问题 So I created a simple app using Xcode for iOS 8, and used the new "Visual Effects View with Blur and Vibrancy" object in the interface builder. It works great for text but all the images seem to only work in the simulators , and none on any hardware. To illustrate exactly what I mean, here's a comparison. Screenshot in simulator (intended look): Screenshot on iPhone (8.3, same as simulator version): So the three round elements are: an image, a button with the same image as background, and the

Detect if device properly displays UIVisualEffectView?

China☆狼群 提交于 2019-12-18 19:04:29
问题 My app utilizes UIVisualEffectView to blur the background just like Control Center. But I discovered the iPad 2 (and Retina iPad) which can run iOS 8 isn't powerful enough to display that effect so it reverts to a gray color. I would like to be able to detect if the device the app is running on is powerful enough to display the blur effect, and if not I won't apply it, instead I'll change the background color to something that looks much better than that gray color. But I don't want to just

use UIVisualEffectView to create a blur view, correct on simulator but not on iphone & ipad

十年热恋 提交于 2019-12-13 13:31:08
问题 The goal: create a blur view in app. The code I use: func createBlurBackgroundView() { if !UIAccessibilityIsReduceTransparencyEnabled() { if blurredSubView == nil || blurredSubView.superview == nil { print("Create blurred background view") self.backgroundColor = UIColor.clearColor() let blurEffect = UIBlurEffect(style: UIBlurEffectStyle.Light) blurredSubView = UIVisualEffectView(effect: blurEffect) blurredSubView.frame = self.bounds self.insertSubview(blurredSubView, atIndex: 0) } } else {

UIVisualEffectView not working on iPhone 6

别等时光非礼了梦想. 提交于 2019-12-12 10:46:32
问题 It appears that the UIVisualEffectView does not blur the background when run on iPhone 6/6S. I have only seen one other person mention this, on the Apple Developer Forums, but nothing here. I've written a sample project to demonstrate this. All you have to do is run this on an actual iPad and an iPhone 6 and you'll see. Note you'll need to add an image to your project. It works fine in the simulator, but the blur view is opaque when run on an actual iPhone 6 or 6S. My simple view controller:

Text Blur with UICOllectionview cell

我只是一个虾纸丫 提交于 2019-12-12 02:36:26
问题 I have collectionView Cell In that i have this text,I want to blur the text as shown in image. I have tried Using UIVisualEffect but i didnt get exact response. Code: UIGraphicsBeginImageContext(self.bounds.size); [self.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); //Blur the UIImage with a CIFilter CIImage *imageToBlur = [CIImage imageWithCGImage:viewImage.CGImage]; CIFilter

How to make a transparent cut on UIVisualEffectView?

自作多情 提交于 2019-12-10 04:21:09
问题 In my app , I made a see through UIView by subclassing simple UIView's. However, If I try to do the same using UIVisualEffectView , I am not able to do it. Here is what I am able to do using normal UIView : When I use the UIVisualEffectView in place of green UIView ,I cannot see the see through UIView , even though see through UIView is added to the UIVisualEffectView as subview . Code: - (void)drawRect:(CGRect)rect { //this is same for the UIVIew and for the UIVisualEffectView [super