zotero / zotero-ios

Zotero for iOS
https://apps.apple.com/us/app/zotero/id1513554812
Other
236 stars 31 forks source link

Tab support #694

Open dstillman opened 1 year ago

dstillman commented 1 year ago

We could do this just in the PDF reader, but I think it will make more sense to mirror the desktop app:

We should also open web snapshots in tabs.

Down the line, both on iOS and desktop, you'd be able to open a note in a tab too, for a full-window editing experience, and probably multiple library views (e.g., open a collection in a tab).

Logically the tab bar is the parent of each view, so we should try putting it above the toolbars, as we do on macOS. My only concern is that if you miss and tap the status bar, you could accidentally trigger the scroll-to-top behavior and lose your place, but let's see whether that actually happens.

And then the other general concern is just encroaching on reading space. We'd obviously hide this when hiding the status bar and main toolbar in the PDF reader, but since this will always be present we may want to experiment with auto-hiding on scroll like PDF Viewer does (and, slightly different conceptually but effectively the same, Safari when you scroll down).

mvasilak commented 1 year ago

Thinking about this issue, it seems that the primary jobs to be done (JTBD) are



These could be implemented in several ways, e.g. using a UISegmentedControl, or a UITabBar, or a custom control that is closer to the UI of tabbed panes in the desktop, or some 3rd party library (I’ve seen these 2, https://github.com/xmartlabs/XLPagerTabStrip & https://github.com/uias/Tabman, but I don't think they are what we want). 
We could also consider using a solution much different from tabs, more accustomed to iOS/iPadOS apps. E.g. a sidebar, or a floating control (that would even be visible in full item view), or use some combination of a control with swipe gestures.

Some comments on the JTBDs:

mvasilak commented 1 year ago

@dstillman do you have any comments on the above?