Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Support Tabs #21

Open
Kamik423 opened this issue Apr 1, 2018 · 2 comments
Open

Support Tabs #21

Kamik423 opened this issue Apr 1, 2018 · 2 comments

Comments

@Kamik423
Copy link

Kamik423 commented Apr 1, 2018

It would be great if it were possible to have tabs, like in Goodnotes or Safari

alt\

They would be created when dragging a panel over a non-floating panel. I guess they'd be in a bar below the Navigation bar, or maybe the Navigation bar could be split if it were only two or so (?). A tab could then be grabbed and pulled back out to a floating panel. Maybe even a panel with multiple tabs could be dragged. Kind of the way that windows behave now on MacOS, when having the native tabs. (TextMate is a great example for that)

@louisdh
Copy link
Owner

louisdh commented Apr 1, 2018

I'm not sure if making PanelKit more like a windowing system is a good idea. In my opinion tabs are meant for view controllers. For example each tab in an app could represent an open document, where each view controller (tab) has panels. Letting panels have tabs might confuse users in apps that also allow documents to have tabs (which would result in tabs in tabs). On the other hand, Photoshop (and other Adobe apps) do let panels be tabbed, so maybe it would make sense.

Btw: if you're interested in a "tabs for iOS app" library, there's TabView.

@Kamik423
Copy link
Author

Kamik423 commented Apr 1, 2018

The idea is for example if pixure could tab drawings or even put them in split view for reference or so (it is not a perfect example here. Looking into this for a slightly different application). It would only make sense to tab the same view controllers.

It is not something that would have to be enabled by default, but it would definitely be a great addition.

Thanks for the hint with TabView, I’ll look into that. I was actually looking for something like that, but was unable to find anything. Maybe I’ll find a way to combine it with PanelKit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants