ActionButton icon indicating copy to clipboard operation
ActionButton copied to clipboard

Problem in dismiss or hide the actionview after clicking action item

Open shwetadodiya opened this issue 6 years ago • 1 comments

I can able to move to another screen.But when i come back i again see the actionsheet open. I wanted to hide the floating button before navigating to another screen.

 let ActionBtnAddaction = ActionButtonItem(title: "Add screen", image:nil)
        ActionBtnAddaction.action = { item in self.performSegue(withIdentifier: "NavToAddscreen", sender: nil)
            
        }


actionButton = ActionButton(attachedToView: self.view, items: [ActionBtnAddSite])
        actionButton.action = { button in button.toggleMenu() }
        actionButton.setTitle("+", forState: UIControlState())
        
        actionButton.backgroundColor = UIColor(red: 238.0/255.0, green: 130.0/255.0, blue: 34.0/255.0, alpha:1.0)

shwetadodiya avatar Nov 11 '18 07:11 shwetadodiya

override func viewWillDisappear(_ animated: Bool) { actionButton.active = true actionButton.toggleMenu() }

Lyankar avatar Jul 27 '19 10:07 Lyankar