Giter Club home page Giter Club logo

swiftui-flow's Introduction

SwiftUI Flow ➡️

A declarative and concurrent way to call views in swiftui, allowing you to pass parameters as input and return values ​​as output.

When to resort to SwiftUI Flow

SwiftUI Flow helps showing and dismissing view in app logic. It can be used to run flows like onboardings or pickers flows, dividing declarating logic from views. Flows can also be concatenated.

Wrappers

Flow

FlowInput

ResumeFlow

CancelFlow

Modifiers

flowSheet(_: Flow, content: () -> View)

flowNavigationDestination(_: Flow, content: () -> View)

flowDismissDisabled(_: Bool = true)

Use this to disable the automatic view dismiss when the flow ends. This is useful when returning from multiple flows at the same time.

Demo

To open the demo run in the project folder sh setup.sh from terminal.

swiftui-flow's People

Contributors

lorenzofiamingo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.