-
Notifications
You must be signed in to change notification settings - Fork 333
Blur
Grigorii Lutkov edited this page Apr 19, 2021
·
1 revision
You can use UIBlurEffect with next properties:
leftViewBackgroundBlurEffect: UIBlurEffect
rightViewBackgroundBlurEffect: UIBlurEffect
rootViewCoverBlurEffectForLeftView: UIBlurEffect
rootViewCoverBlurEffectForRightView: UIBlurEffect
leftViewCoverBlurEffect: UIBlurEffect
rightViewCoverBlurEffect: UIBlurEffect
For example:
sideMenuController.leftViewBackgroundBlurEffect = UIBlurEffect(style: .regular)
If you want to change color of blurred view, use:
leftViewBackgroundColor: UIColor
rightViewBackgroundColor: UIColor
rootViewCoverColorForLeftView: UIColor
rootViewCoverColorForRightView: UIColor
leftViewCoverColor: UIColor
rightViewCoverColor: UIColor
For example:
sideMenuController.leftViewBackgroundColor = UIColor(red: 0.0, green: 0.5, blue: 1.0, alpha: 0.1)
If you want to change intensity of blurred view, use:
leftViewBackgroundAlpha: CGFloat
rightViewBackgroundAlpha: CGFloat
rootViewCoverAlphaForLeftView: CGFloat
rootViewCoverAlphaForRightView: CGFloat
CGFloatleftViewCoverAlpha: CGFloat
rightViewCoverAlpha: CGFloat
For example:
sideMenuController.leftViewBackgroundAlpha = 0.9