FeatherweightLabs / FeatherweightRouter

Clean Swift Router and Coordinator for declarative routing tree matching
Apache License 2.0
102 stars 12 forks source link

Made a createRoute function, moved currentStack to the StackRouter, m… #6

Closed Aleksion closed 8 years ago

Aleksion commented 8 years ago

Made naive implementation of af dismissFunction that updates the stack, create RouterViewProtocol instead of relying directly on UIViewController


This was forked 17 commits ago, so much of it might be redundant. But I wanted to setup the pull request so you could look at and discuss some of the solutions.

The main points are:

RouterViewProtocol - which is a protocol that abstracts away uiviewcontrollers from the inner workings of the framework. You might have already solved this (I did the code offline on the plane)

dismissFunction - showing how the back function can be made to update the stack. The way it's implemented is way too imperative - and I still question whether the functionality should be used. But it shows how it can be done at least :)

agentk commented 8 years ago

Merged in #7