Ramotion / animated-tab-bar

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
https://www.ramotion.com/animated-tab-bar-ios-app-development-ui-library/
MIT License
11.13k stars 1.33k forks source link

Using multiple Storyboards makes app crash #139

Closed pillade closed 6 years ago

pillade commented 8 years ago

If you have your TabController in a Storyboard and each UITabBarItem is added in others storyboards the app crashes because item in tabbar are 0 in this function: createViewContainers().

A solution is to move initializeContainers() call in RAMAnimatedTabBarController from viewDidLoad to viewWillAppear.

rajeshm20 commented 8 years ago

Tabbar worked. But animation effect lost...

 public func viewWillAppear() {
    super.viewDidLoad()

    self.didLoadView = true

    self.initializeContainers()
}
rajeshm20 commented 8 years ago

> fatal error: items must inherit RAMAnimatedTabBarItem:

actually error occurs only when build on iPhone simulator. But it works well in iPad device & simulator.

0ber commented 6 years ago

93