ActionButton
ActionButton copied to clipboard
Problem in dismiss or hide the actionview after clicking action item
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)
override func viewWillDisappear(_ animated: Bool) { actionButton.active = true actionButton.toggleMenu() }