How to do get background view as blur while sidemenu is opened
Elamuruga opened this issue ยท 10 comments
@jonkykong While showing the side menu parent view of the side menu should blur or dimmed. Could you please help me with this?
I have a same question
presentingendAlpha
presentingendAlpha
@XingXiaoWu Could you please help me with a clear code sample? Thanks in advance that will help me a lot.
SideMenuManager.default.menuAnimationFadeStrength = 0.8
default.menuAnimationFadeStrength = 0.8
@elhajjajiamine @XingXiaoWu Thank you for your immediate responses. I tried your solution but it's not working and the above method you mentioned was deprecated I think so. Could you please help me with this? thanks in advance. The expected result sample screenshot I attached below. Captured in Gmail App in iOS mobile.
var menu = SideMenuNavigationController(rootViewController: SideMenuController.init())
menu.settings = makeSettings()
private func makeSettings() -> SideMenuSettings{
let presentationStyle = SideMenuPresentationStyle.menuSlideIn
// -----look at this line-----start
presentationStyle.presentingEndAlpha = CGFloat.init(0.5)
// -----look at this line-----end
var settings = SideMenuSettings()
settings.presentationStyle = presentationStyle
return settings
}
@Elamuruga use this code: leftMenuNavigationController.presentationStyle.presentingEndAlpha = 0.5
@Elamuruga use this code: leftMenuNavigationController.presentationStyle.presentingEndAlpha = 0.5
@balashekar3 Thank you lot solution you were provided were working fine.
@Elamuruga use this code: leftMenuNavigationController.presentationStyle.presentingEndAlpha = 0.5
@gaoqh You can use this it's working fine. once again thank you @balashekar3