//
//  InstanceFromNib.swift
//  MusicPlayer
//
//  Created by Mr.Zhou on 2024/3/27.
//

import Foundation
//MARK: - Xib协议扩展
///返回View的xib 协议
protocol instanceFromNibDelegate {
}
extension instanceFromNibDelegate where Self:UIView{
    ///获取UIView的xib
    static func instanceFromNib() -> Self{
        return Bundle.main.loadNibNamed(String(describing: Self.self), owner: nil, options: nil)?.first as! Self
    }
}
