Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
underthestars-zhy committed Apr 29, 2023
1 parent 86a127a commit 76cf9c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ struct Flow {
* `id`: The ID of the flow
* `name`: The name of the flow
* `actions`: A array that contains all the actions in the flow
* `parentAppSectionId`: The ID of the parent flow (flow is a **tree sturture**, MobbinAPI will surpport *directly parse& it to the tree flow in the future)
* `parentAppSectionId`: The ID of the parent flow (flow is a **tree sturture**)
* `order`: The order of the flow
* `updatedAt`: When the screen was updated
* `appVersionId`: The app verion ID of the app, which contains this flow
Expand Down Expand Up @@ -235,6 +235,14 @@ struct Flow {
try await api.getiOSFlows(of: App(...))
```

##### Generate Tree Structure Flow

MobbinAPI is capable of generating a tree structure based on the flow array. `Tree` is an Enum with a single case `.children`.

```swift
let tree = api.generateTreeSturctureFlow(from: flows)
```

## iOS Screens

Will support in the future.
Expand Down

0 comments on commit 76cf9c7

Please sign in to comment.