the TabBarBox is like tabBar's dropbox
you can use in cocoapods
pod 'TabBarBox'
first, you must import TabBarBox and your class inherit of TabBarBoxController
import TabBarBox
class CustomTabBarViewController: TabBarBoxController {
...
then you selected TabBar and change class to 'CustomTabBarViewController'
action for homeButton
import UIKit
import TabBarBox
class CustomTabBarViewController: TabBarBoxController {
override func viewDidLoad() {
super.viewDidLoad()
homeButton.addTarget(self, action: #selector(didTapAction(_:)), for: .touchUpInside)
}
func didTapAction(_ sender: Any) {
// do someThing
}
}