Music_Player3/MusicPlayer/MP/MPSideA/Views/Base(基类-导航栏-标签栏)/MPSideA_CustomTabBar.swift
2024-05-11 09:48:37 +08:00

37 lines
883 B
Swift

//
// MPCustomTabBar.swift
// MusicPlayer
//
// Created by Mr.Zhou on 2024/3/27.
//
import UIKit
///taBar
class MPSideA_CustomTabBar: UITabBar {
//tabBarView
fileprivate lazy var tabBarView:MPSideA_CustomTabBarView = {
let tabBarView:MPSideA_CustomTabBarView = .instanceFromNib()
return tabBarView
}()
override init(frame: CGRect) {
super.init(frame: frame)
self.addSubview(tabBarView)
backgroundColor = .clear
tabBarView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.height.equalTo(72*width)
}
}
override func layoutSubviews() {
super.layoutSubviews()
//tabBarView
self.bringSubviewToFront(tabBarView)
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
}