Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Side Menu Not Updating Value While App Runing #77

Open
Sulemanali511 opened this issue Jun 11, 2020 · 3 comments
Open

Side Menu Not Updating Value While App Runing #77

Sulemanali511 opened this issue Jun 11, 2020 · 3 comments

Comments

@Sulemanali511
Copy link

When ever i change the profile image or username from profile section response successful and change the name on all place except on left side menu i replace the username text of UILabel in view did load of side menu

@venkateshaelegenie
Copy link

I am also facing this issue,My values are not updating in side menu.For the first time only it's fetching values later it's not updating.

@venkateshaelegenie
Copy link

Finally i found the solution that We need to add leftPanelVC?.viewWillAppear(true) in FAPanel+Animations.swift under the loadLeftPanel() like this

if isLeftPanelOnFront {
leftPanelVC?.viewWillAppear(true)
view.bringSubviewToFront(leftPanelContainer)
}

@rizwanadev
Copy link

rizwanadev commented Jun 18, 2021

you can use delegate method to update UI when leftvc will appear like this

import FAPanels

class MenuViewController : FAPanelStateDelegate{
    override func viewDidLoad() {
        super.viewDidLoad()
        panel?.delegate = self
    }

    func leftPanelWillBecomeActive() {
        self.setData() //update ui
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants