Wednesday, February 8, 2023
HomeiOS Developmentios - How can I add a UIView above the customized Tabbar

ios – How can I add a UIView above the customized Tabbar


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.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments