Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let blurEffect = UIBlurEffect(style: UIBlurEffectStyle.light)
- let blurEffectView = UIVisualEffectView(effect: blurEffect)
- blurEffectView.tintColor = UIColor.green
- blurEffectView.tag = 999;
- let frame:CGRect = CGRect(x: self.internalView.frame.size.width + self.internalView.frame.origin.x, y: self.drawerView.frame.origin.y, width: self.drawerView.frame.size.width - self.internalView.frame.size.width, height: self.drawerView.frame.size.height)
- blurEffectView.frame = frame
- blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
- self.drawerView.insertSubview(blurEffectView, belowSubview: self.btnClose)
- override func viewDidLoad() {
- super.viewDidLoad()
- let visualEffectView = UIVisualEffectView.init(effect: UIBlurEffect.init(style: .light))
- visualEffectView.backgroundColor = UIColor.init(red: 0.0, green: 0.5, blue: 0.0, alpha: 0.5)
- visualEffectView.frame = self.view.bounds
- self.view.addSubview(visualEffectView)
- }
- visualEffectView.backgroundColor = UIColor.init(red: 0.0, green: 0.5, blue: 0.0, alpha: 0.5)
- blurView.backgroundColor = UIColor.red.withAlphaComponent(0.3)
Add Comment
Please, Sign In to add comment