Skip to content

Swift UI API interface for SwiftCurrent #61

Locked Answered by Richard-Gist
Richard-Gist asked this question in Ideas
Discussion options

You must be logged in to vote

Chosen direction

We have decided on an API to move forward with. Ultimately the API will look like this:

var body: some View {
    // example 1: Always presented, 2 item workflow, without arguments
    WorkflowView {
        WorkflowItem(FR1.self)
        WorkflowItem(FR2.self)
    }

    // example 2: Always presented, 2 item workflow, with arguments
    WorkflowView(launchingWith: "MY name is!") {
        WorkflowItem(FR1.self)
        WorkflowItem(FR2.self)
    }

    // example 3: Fully customized workflow with animation on abandon.
    WorkflowView(isLaunched: $isLaunched.animation(), launchingWith: "String in") {
        WorkflowItem(FR1.self)
        WorkflowItem(FR2.self)

Replies: 13 comments 17 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@Tyler-Keith-Thompson
Comment options

@Tyler-Keith-Thompson
Comment options

@Richard-Gist
Comment options

@Richard-Gist
Comment options

@Tyler-Keith-Thompson
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Tyler-Keith-Thompson
Comment options

@Richard-Gist
Comment options

@Tyler-Keith-Thompson
Comment options

@Richard-Gist
Comment options

Comment options

You must be logged in to vote
3 replies
@Tyler-Keith-Thompson
Comment options

@Richard-Gist
Comment options

@wiemerm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Tyler-Keith-Thompson
Comment options

Comment options

You must be logged in to vote
3 replies
@Richard-Gist
Comment options

@Richard-Gist
Comment options

@Tyler-Keith-Thompson
Comment options

Answer selected by Richard-Gist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants