Giter Club home page Giter Club logo

crossnavigationcontroller's Introduction

CrossNavigationController

A navigation controller that can switch between view controllers horizontally and vertically

TODO:

  • Setup HeaderView

  • Detect HeaderView scrolling direction and send that off to the HeaderViewScrollDelegate

  • Implement the transitioning logic at the bottom of the HeaderView file (conforming to HeaderViewScrollDelegate) [Thanks, Milan Nosal!]

  • Add interactivity to transitioning logic (NOT WORKING) ** I suspect I've wired things incorrectly **

The file structure:

The file structure is a lot, but easy to understand.

The controls:

The goal for this is to have a sort of UITabBarController that is interactive and is controlled by swipe gestures. You move between "Sections" (different categories) by vertical movement. This is to facilitate something like switching between multiple game modes (easy, medium, hard). You can then move between different "Pages" by moving horizontally. This is to facilitate movement between different levels in each game mode. (level1, level2, level3)

The code:

All the code is mainly encapsulated in HeaderView class. The sections and pages are hardcoded in a 2D-Array called pages. With each large array containing an array of inner pages. It currently has 3 sections with four, three and four pages for each respective section.

There are also a bunch of variables called currSection and lastPage which store which section we're in so it can (hopefully) trigger a transition.

The transitioning:

HeaderView implements the HeaderViewScrollDelegate which basically handles all scrolling and has a "vertically" parameter that indicates whether the user is transitioning vertically or horizontally. This is needed as the View Structure that handles this code is fairly convoluted, so this only deals with the scrolling after determining the direction is handled.

crossnavigationcontroller's People

Contributors

milannosal avatar yvin3d avatar

Watchers

 avatar

Forkers

milannosal

crossnavigationcontroller's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.