eggswift / ESTabBarController

:octocat: ESTabBarController is a Swift model for customize UI, badge and adding animation to tabbar items. Support lottie!
MIT License
5.17k stars 578 forks source link

ESTabBarItem not storyboard ready? #115

Closed pari-pacc closed 6 years ago

pari-pacc commented 6 years ago

From ESTabBarItem ->

public required init?(coder aDecoder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
}

^^ ROFL

Correct is -> public required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }

TrzyGracje commented 6 years ago

Is there any not-fork workaround for that?

eggswift commented 6 years ago

Try #42

let v1 = self.storyboard?.instantiateViewController(withIdentifier: "HomeVC") as! HomeVC
v1.tabBarItem = ESTabBarItem.init(TabBarContentView(), title: "Home", image: UIImage(named: "home"), selectedImage: UIImage(named: "home2"))