Oh hi! Looks like you want build some software with Workflows! It's a bit different from traditional iOS development, so let's go through building a simple little TODO app to get the basics down.
The project has both a starting point, as well as an example of the completed tutorial.
Nearly all of the code is in the Frameworks
directory.
To help with the setup, we have created a few helpers:
TutorialViews
: A set of 3 views for the 3 screens we will be building,Welcome
,TodoList
, andTodoEdit
.TutorialBase
: This is the starting point to build out the tutorial. It contains view controllers that host the views fromTutorialViews
to see how they display.- Additionally, there is a
TutorialHostingViewController
that the AppDelegate sets as the root view controller. This will be our launching point for all of our workflows.
- Additionally, there is a
TutorialFinal
: This is an example of the completed tutorial - could be used as a reference if you get stuck.
The tutorial uses Tuist for project configuration. Follow the main README instructions for getting set up with Tuist first, and then run:
$ cd Samples/Tutorial
$ tuist install
Resolving and fetching plugins.
Plugins resolved and fetched successfully.
Resolving and fetching dependencies.
...
$ tuist generate
Loading and constructing the graph
It might take a while if the cache is empty
Using cache binaries for the following targets:
Generating workspace Tutorial.xcworkspace
Generating project Workflow
Generating project Tutorial
Generating project swift-case-paths
Generating project Development
Generating project xctest-dynamic-overlay
Generating project swift-identified-collections
Generating project ReactiveSwift
Generating project swift-collections
Generating project swift-perception
Generating project iOSSnapshotTestCase
Generating project RxSwift
Generating project swift-syntax
Project generated.
The Tutorial.xcworkspace
workspace will open in Xcode automatically.
- Tutorial 1 - Single view backed by a workflow
- Tutorial 2 - Multiple views and navigation
- Tutorial 3 - State throughout a tree of workflows
- Tutorial 4 - Refactoring
- Tutorial 5 - Testing