Skip to content

Commit 9ea25a6

Browse files
Merge pull request #117 from wwt/jazzy-restructure
GitHub io documentation restructured.
2 parents 33866aa + d8aa121 commit 9ea25a6

16 files changed

+80
-803
lines changed

.github/.jazzy.yaml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,34 @@ author: WWT and Tyler Thompson
1111
documentation: .github/guides/*.md
1212
abstract: .github/abstract/*.md
1313
custom_categories:
14-
- name: How to use SwiftCurrent with SwiftUI
15-
children:
16-
- Getting Started with SwiftUI
17-
- Working with NavigationView
18-
- name: How to use SwiftCurrent with UIKit
14+
- name: Overview
1915
children:
20-
- Storyboards Intro
21-
- Programmatic UIKit Intro
16+
- Why This Library
17+
- Installation
2218
- name: Creating Workflows
2319
children:
2420
- FlowRepresentable
25-
- PassthroughFlowRepresentable
2621
- Workflow
22+
- PassthroughFlowRepresentable
23+
- name: How to use SwiftCurrent with SwiftUI
24+
children:
25+
- Getting Started with SwiftUI
26+
- Working with NavigationView
2727
- name: Creating Workflows in SwiftUI
2828
children:
29+
- WorkflowLauncher
2930
- View
30-
- ViewControllerWrapper
3131
- WorkflowItem
32-
- WorkflowLauncher
32+
- name: How to use SwiftCurrent with UIKit
33+
children:
34+
- Using Programmatic Views
35+
- Using Storyboards
3336
- name: Creating Workflows in UIKit
3437
children:
35-
- HostedWorkflowItem
36-
- StoryboardLoadable
3738
- UIViewController
3839
- UIWorkflowItem
40+
- HostedWorkflowItem
41+
- StoryboardLoadable
3942
- name: Controlling Presentation
4043
children:
4144
- LaunchStyle
@@ -47,7 +50,8 @@ custom_categories:
4750
- AnyFlowRepresentable
4851
- name: Underlying Types
4952
children:
53+
- FlowRepresentableMetadata
5054
- LinkedList
51-
- WorkflowError
5255
- OrchestrationResponder
53-
- FlowRepresentableMetadata
56+
- ViewControllerWrapper
57+
- WorkflowError
File renamed without changes.

.github/guides/Getting Started with SwiftUI.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This guide will walk you through getting a `Workflow` up and running in a new iO
44

55
The app in this guide is going to be very simple. It consists of a view that will host the `WorkflowLauncher`, a view to enter an email address, and an optional view for when the user enters an email with `@wwt.com` in it. Here is a preview of what the app will look like:
66

7-
![Preview image of app](https://raw.githubusercontent.com/wwt/SwiftCurrent/main/.github/wiki/swiftUI.gif)
7+
![Preview image of app](https://user-images.githubusercontent.com/79471462/131556533-f2ad1e6c-9acd-4d62-94ac-9140c9718f95.gif)
88

99
## Adding the dependency
1010

11-
For instructions on SPM and CocoaPods, [check out our installation page.](https://github.com/wwt/SwiftCurrent/wiki/Installation#swift-package-manager)
11+
For instructions on SPM and CocoaPods, [check out our installation page.](installation.html#swift-package-manager)
1212

1313
## IMPORTANT NOTE
1414

@@ -18,6 +18,8 @@ SwiftCurrent is so convenient that you may miss the couple lines that are calls
1818

1919
Create two views that implement `FlowRepresentable`.
2020

21+
First view:
22+
2123
```swift
2224
import SwiftUI
2325
import SwiftCurrent
@@ -48,6 +50,13 @@ struct FirstView_Previews: PreviewProvider {
4850
FirstView(with: "Example Name")
4951
}
5052
}
53+
```
54+
55+
Second view:
56+
57+
```swift
58+
import SwiftUI
59+
import SwiftCurrent
5160

5261
struct SecondView: View, FlowRepresentable { // SwiftCurrent
5362
typealias WorkflowOutput = String // SwiftCurrent
@@ -201,4 +210,4 @@ WorkflowLauncher(isLaunched: $workflowIsPresented) { // SwiftCurrent
201210
thenProceed(with: SecondView.self) // SwiftCurrent
202211
}
203212
}
204-
```
213+
```
File renamed without changes.

.github/guides/Programmatic UIKit Intro.md renamed to .github/guides/Using Programmatic Views.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This guide will walk you through getting a `Workflow` up and running in a new iO
44

55
The app in this guide is going to be very simple. It consists of a screen that will launch the `Workflow`, a screen to enter an email address, and an optional screen for when the user enters an email with `@wwt.com` in it. Here is a preview of what the app will look like:
66

7-
![Preview image of app](https://raw.githubusercontent.com/wwt/SwiftCurrent/main/.github/wiki/programmatic.gif)
7+
![Preview image of app](https://user-images.githubusercontent.com/79471462/131556322-56757c1d-e4ec-4581-a47c-969f536e3893.gif)
88

99
## Adding the dependency
1010

11-
For instructions on SPM and CocoaPods, [check out our installation page.](https://github.com/wwt/SwiftCurrent/wiki/Installation#swift-package-manager)
11+
For instructions on SPM and CocoaPods, [check out our installation page.](installation.html#swift-package-manager)
1212

1313
## IMPORTANT NOTE
1414

@@ -18,6 +18,8 @@ SwiftCurrent is so convenient that you may miss the couple lines that are calls
1818

1919
Create two view controllers that inherit from `UIWorkflowItem` and implement `FlowRepresentable`.
2020

21+
First view controller:
22+
2123
```swift
2224
import UIKit
2325
import SwiftCurrent
@@ -72,6 +74,14 @@ class FirstViewController: UIWorkflowItem<String, String>, FlowRepresentable { /
7274
saveButton.topAnchor.constraint(equalTo: emailTextField.bottomAnchor, constant: 24).isActive = true
7375
}
7476
}
77+
```
78+
79+
Second view controller:
80+
81+
```swift
82+
import UIKit
83+
import SwiftCurrent
84+
import SwiftCurrent_UIKit
7585

7686
// This screen shows an employee only screen
7787
class SecondViewController: UIWorkflowItem<String, String>, FlowRepresentable { // SwiftCurrent
@@ -280,4 +290,4 @@ Now in your UIKit workflow simply use a `HostedWorkflowItem` (While in BETA, `im
280290

281291
```swift
282292
launchInto(Workflow(HostedWorkflowItem<SwiftUIView>.self)) // SwiftCurrent
283-
```
293+
```

.github/guides/Storyboards Intro.md renamed to .github/guides/Using Storyboards.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This guide will walk you through getting a `Workflow` up and running in a new iO
44

55
The app in this guide is going to be very simple. It consists of a screen that will launch the `Workflow`, a screen to enter an email address, and an optional screen for when the user enters an email with `@wwt.com` in it. Here is a preview of what the app will look like:
66

7-
![Preview image of app](https://raw.githubusercontent.com/wwt/SwiftCurrent/main/.github/wiki/storyboard.gif)
7+
![Preview image of app](https://user-images.githubusercontent.com/79471462/131556008-943f5e00-b7d0-4782-974d-1e914c4179fc.gif)
88

99
## Adding the dependency
1010

11-
For instructions on SPM and CocoaPods, [check out our installation page.](https://github.com/wwt/SwiftCurrent/wiki/Installation#swift-package-manager)
11+
For instructions on SPM and CocoaPods, [check out our installation page.](installation.html#swift-package-manager)
1212

1313
## IMPORTANT NOTE
1414

@@ -39,6 +39,8 @@ extension MainStoryboardLoadable {
3939

4040
Create two view controllers that both conform to `MainStoryboardLoadable` and inherit from `UIWorkflowItem`.
4141

42+
First view controller:
43+
4244
```swift
4345
import UIKit
4446
import SwiftCurrent_UIKit
@@ -64,6 +66,13 @@ class FirstViewController: UIWorkflowItem<String, String>, MainStoryboardLoadabl
6466
proceedInWorkflow(emailTextField.text ?? "") // SwiftCurrent
6567
}
6668
}
69+
```
70+
71+
Second view controller:
72+
73+
```swift
74+
import UIKit
75+
import SwiftCurrent_UIKit
6776

6877
// This screen shows an employee only screen
6978
class SecondViewController: UIWorkflowItem<String, String>, MainStoryboardLoadable { // SwiftCurrent
@@ -265,4 +274,4 @@ Now in your UIKit workflow simply use a `HostedWorkflowItem` (While in BETA, `im
265274

266275
```swift
267276
launchInto(Workflow(HostedWorkflowItem<SwiftUIView>.self)) // SwiftCurrent
268-
```
277+
```

.github/wiki/Why-This-Library.md renamed to .github/guides/Why This Library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Why This Library?
22
There are many reasons to be excited about SwiftCurrent:
33
- Build flexibility into your applications so that you can easily make changes when you need to.
4-
- Compose new [Workflows](https://wwt.github.io/SwiftCurrent/Classes/Workflow.html) to quickly create a new journey through your app.
4+
- Compose new `Workflow`s to quickly create a new journey through your app.
55
- Stop components in your app from knowing more than they should, no more complicated routers or views that have to know what comes next.
66
- Create flows that give your users a better experience, web frameworks can easily sign somebody in, or sign them up, then continue into a flow, so why not be able to easily do the same in Swift?
77
- Power deep linking experiences that can get your users right where you want them with minimal overhead.

0 commit comments

Comments
 (0)