diff --git a/.github/guides/Working with Modals.md b/.github/guides/Working with Modals.md index 16b3ae26b..4cd065464 100644 --- a/.github/guides/Working with Modals.md +++ b/.github/guides/Working with Modals.md @@ -1,7 +1,7 @@ ### Presentation Types -When you are constructing a workflow you can use `WorkflowItem.presentationType(_:)` along with a valid `LaunchStyle.SwiftUI.PresentationType` to control how a `FlowRepresentable` will be displayed. This is how you'll describe your modals and keep your view ignorant of the context it's displayed in. +When constructing a workflow, you can use `WorkflowItem.presentationType(_:)` along with a valid `LaunchStyle.SwiftUI.PresentationType` to control how a `FlowRepresentable` will be displayed. This is how you'll describe your modals and keep your view ignorant of the context it's displayed in. -#### Example: +#### Example ```swift NavigationView { WorkflowLauncher(isLaunched: .constant(true)) { @@ -12,15 +12,15 @@ NavigationView { } ``` -With that you've described that `FirstView` should be presented normally. When it calls `FlowRepresentable.proceedInWorkflow()` it'll present `SecondView` using the default SwiftUI modal (sheet). +With that, you've described that `FirstView` should be presented normally. When it calls `FlowRepresentable.proceedInWorkflow()`, it'll present `SecondView` using the default SwiftUI modal (sheet). -> NOTE: Unlike `LaunchStyle.SwiftUI.PresentationType.navigationLink` you apply `LaunchStyle.SwiftUI.PresentationType.modal` to a view that should be launched modally. +> **NOTE:** Unlike `LaunchStyle.SwiftUI.PresentationType.navigationLink`, you apply `LaunchStyle.SwiftUI.PresentationType.modal` to a view that should be launched modally. ### Different Modal Styles -When you use a presentation type of `LaunchStyle.SwiftUI.PresentationType.modal` you can optionally pass it a `LaunchStyle.SwiftUI.ModalPresentationStyle`. +When you use a presentation type of `LaunchStyle.SwiftUI.PresentationType.modal`, you can optionally pass it a `LaunchStyle.SwiftUI.ModalPresentationStyle`. -#### Example: -The following will use a full screen cover: +#### Example +The following will use a full-screen cover: ```swift NavigationView { WorkflowLauncher(isLaunched: .constant(true)) { @@ -29,4 +29,4 @@ NavigationView { } } } -``` \ No newline at end of file +```