kiwicom / orbit-swiftui

Kiwi.com Orbit design system library
MIT License
132 stars 23 forks source link

`Tabs` layout should be configurable by call site #645

Open PavelHolec opened 1 year ago

PavelHolec commented 1 year ago

Tabs should let the call site define the sizes of tabs or the whole component.

By default:

A call site could:

Tabs {
   tab1
   tab2
}
.idealSize()   // each tab would have expanding size, but overall the Tabs component would not be expanding
Tabs {
   tab1
       .idealSize()   // this tab would only have its ideal size fixed
   tab2
}