Skip to content

Arbitrary number of sides #5

@robertmryan

Description

@robertmryan

@pyro2927 I've done a rendition of this that properly handles an arbitrary number of sides. Specifically, if there are four sides, it works like before, rotating a cube. But if there are three sides, it's like rotating a triangular prism. If there are five sides, it's like rotating a pentagonal prism, etc. If there are two sides, it's like flipping a card. Etc.

The alternative is to keep the cube-like transition, regardless of the number of sides. I'm less crazy about that approach, but this is your class, so I'll let you make the call.

So, two questions:

  1. Would you like me to submit that as a separate branch? Or should I fork it and you can decide to merge it (or not merge it)?
  2. Do you have strong opinions regarding my visual metaphor, rotating an object with the number of sides commensurate with the number of child view controllers? Or staying with the cube metaphor regardless of the number of sides?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions