ermalkaleci / CarbonKit

CarbonKit - iOS Components (Obj-C & Swift)
MIT License
682 stars 163 forks source link

Swift: Dynamic Creation of ViewController Tabs #162

Open moderateepheezy opened 7 years ago

moderateepheezy commented 7 years ago

The number of tabs and contents for each tab to be created is base on a response call from an API.

for example

data: {

  types: [
          men-clothing: [
               Valentine,
               Swimwear,
                Socks
         ],
        men-footh-wear: [
            shoe-fair,
            slippers,
            sneakers 
       ] 
   ]

}

From the json above the types node is dynamic, it could be two or more object.

Parameshvadivel commented 4 years ago

have you found a solution for this..