First of all, thanks for your work, it's very promising !
I thought about this earlier this week and I came up with an API I'd like to see in the future, so, seeing your enthusiasm on the subject, here it is.
let flow = root(screen1)
>>> push(screen2) // here it would be great to model a choice, using an other adapter function ?
>>> presentModally(screen3)
>>> dismiss()
>>> pushAndReplaceAll(screen4)
>>> pushAndReplaceLast(screen5)
The idea is to asbtract the act of pushing, presenting, dismissing, etc. into functions. Navigation Controller could be one provider of these functions. The functions root, push, etc. acts as adapters like what you see in map or filter.
What do you think ?
First of all, thanks for your work, it's very promising !
I thought about this earlier this week and I came up with an API I'd like to see in the future, so, seeing your enthusiasm on the subject, here it is.
The idea is to asbtract the act of pushing, presenting, dismissing, etc. into functions. Navigation Controller could be one provider of these functions. The functions
root,push, etc. acts as adapters like what you see inmaporfilter.What do you think ?