From 8db3943e253e110d9089c63013d31635564ccd57 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Mon, 30 Apr 2018 23:59:12 +0800 Subject: [PATCH] Fix: rename function name to be intention revealing --- Trust/Tokens/ViewControllers/TokensViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Trust/Tokens/ViewControllers/TokensViewController.swift b/Trust/Tokens/ViewControllers/TokensViewController.swift index 9d8f65d0a..84c1a7f91 100644 --- a/Trust/Tokens/ViewControllers/TokensViewController.swift +++ b/Trust/Tokens/ViewControllers/TokensViewController.swift @@ -41,7 +41,7 @@ class TokensViewController: UIViewController { tableView = UITableView(frame: .zero, style: .plain) super.init(nibName: nil, bundle: nil) dataStore.delegate = self - navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(missingToken)) + navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(addToken)) view.backgroundColor = Colors.appBackground @@ -182,7 +182,7 @@ class TokensViewController: UIViewController { view.backgroundColor = viewModel.backgroundColor } - @objc func missingToken() { + @objc func addToken() { delegate?.didPressAddToken(in: self) }