Added a + UIBarButtonItem and add list at the top of list Signed-off-by: pravalgautam <pravalgautam79@gmail.com> Closes #4188
Signed-off-by: pravalgautam <pravalgautam79@gmail.com>
This commit is contained in:
parent
116e76bbef
commit
064a64e770
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,12 @@ final class BMCViewController: MWMViewController {
|
|||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
viewModel = BMCDefaultViewModel()
|
||||
|
||||
let addButton = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(addTapped))
|
||||
navigationItem.rightBarButtonItem = addButton
|
||||
}
|
||||
@objc func addTapped() {
|
||||
createNewCategory()
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
|
|
Reference in a new issue