Ribs: [iOS] Implementing UITabBarController

Created on 9 Jun 2018  路  2Comments  路  Source: uber/RIBs

I am getting confused while creating UITabBarController.

Assuming it has 2 tabs, both of which are RIBs:

  • When should the child RIBs be attached?
  • Can all of them be active at the same time?
  • When should the tab bar controller set its view controllers?

Most helpful comment

Hi @shubham01, I would attach all child RIBs on activation. Definitely, you can activate all of them and you can set child view controllers on activation too. You may want to check this example here https://github.com/dev4jam/ToDo. There is a very similar use-case with Drawer (side menu) which requires content and menu view controllers (and RIBs) be set on activation.

All 2 comments

Hi @shubham01, I would attach all child RIBs on activation. Definitely, you can activate all of them and you can set child view controllers on activation too. You may want to check this example here https://github.com/dev4jam/ToDo. There is a very similar use-case with Drawer (side menu) which requires content and menu view controllers (and RIBs) be set on activation.

@dev4jam Thanks a ton for creating this app!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kronik picture kronik  路  3Comments

vchernyshov picture vchernyshov  路  8Comments

almozavr picture almozavr  路  4Comments

edrew08 picture edrew08  路  3Comments

crystalhsc picture crystalhsc  路  8Comments