toshi0383 / TVMLKitchen

Swifty TVML template manager with or without client-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Presenting the tabBar from an Action

anthonycastelli opened this issue · comments

Currently there isn't a way to present the TabBar via Kitchen.server() or via by giving KitchenTabBar a presentation style. Any chance of getting something like this implemented?

I take that as a feature request.😉
API should look like this, but we have to mark KitchenTabBar.init(items:) as public.

let tabbar = KitchenTabBar(items: [
    TabBar(), TabBar()
])
Kitchen.serve(recipe: tabbar)

Do you want to create a PR ?

Haha yeah, I wasn't sure how you wanted to go about it, but thats what I had in mind. I can do a PR. Coming right up!

Thanks for the PR !😄