I’m engaged on a mission that makes use of a customized TabBar for displaying all of the totally different UIViewControllers however now I want so as to add a mini participant above the tabBar.
class CustomTabBarViewController: UITabBarController, UITabBarControllerDelegate {
@IBOutlet weak var BaseMiniPlayer: UIView!
override func viewDidLoad() {
tremendous.viewDidLoad()
self.delegate = self
}
override func viewWillAppear(_ animated: Bool) {
tremendous.viewWillAppear(true)
tabBar.backgroundColor = UIColor.black
tabBar.tintColor = .white
Controllers()
let viewOverTabBar = UIView(body: CGRect(x: 0, y: 400, width: 30, top: 30));
viewOverTabBar.backgroundColor = UIColor.black
tabBar.addSubview(viewOverTabBar)
}
That is my code so as to add MiniPlayer above the Tabbar.