Skip to content

Multiple stacking points #13

@skogsbaer

Description

@skogsbaer

At the moment, FRLayeredNavigationController supports only one explicit stacking point (configured via the initialViewPosition property of FRLayeredNavigationItem). In addition, there is an implicit stacking point at the right margin of each layer.

It would be great if each layer could have several explicit stacking points. Each stacking point would have an additional priority which specifies the ordering of stacking. Let me explain via an example:

+--------------+ +-----------+ +-------------+
|              | |  xxxxx    | | zzzzzzzz    |
|              | |  xxxxx    | | zzzzzzzz    |
+--------------+ +-----------+ +-------------+
A    B              C    D

The stacking points A, B, C and D have the following priorities:

A: 1
B: 3
C: 2
D: 4

If the frame now becomes smaller, FRLayeredNavigationController first moves the right-most layer to stacking point D. If after this, the layers do not fit into the new frame, the controller moves the middle layer to stacking poing B. If there is still need for more space, the left-most layer is moved to C. If there is still need for more space, the middle layer is moved to A. You see, layers are moved to stacking points in descending order of priorities.

What do you think? I'm willing to implement this feature but would like to ask for feedback first.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions