Skip to content

Proposal for API design #9

@nverinaud

Description

@nverinaud

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions