Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Viewing / Editing structure #112

Open
felix-schwarz opened this issue Aug 28, 2018 · 0 comments
Open

File Viewing / Editing structure #112

felix-schwarz opened this issue Aug 28, 2018 · 0 comments

Comments

@felix-schwarz
Copy link
Contributor

felix-schwarz commented Aug 28, 2018

Here's my suggested approach for extensible, modular file viewer / editor support:

  • Two primitives

    • thumbnail generator (future)
    • interactive: viewer / editor
  • Based on extensions

  • DisplayViewController: Viewer / Editor

    • Source as URL
      • allows viewing downloaded files
      • allows streaming from URL provided by SDK
    • Implemented as View Controllers
    • Indicate features via extension
      • streaming: ability to stream content / requirement of local file
      • editing/saving: capability of saving using a delegate
  • DisplayHostController

    • designed to view a list of items

      • can be single file
      • can be several files (=> slideshow, quickly run through files)
    • taps extensions to determine and instantiate viewer/editor view controller

      • uses DisplayViewControllers as child view controller to display content
    • uses edge swipe gesture (recognizer) to navigate between files

    • shows thumbnails of the files at the bottom (like Photos app)

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

No branches or pull requests

1 participant