Getting available workflows
Get information about the workflows that are synced to the device in order to display them to the user
Get all of the downloaded workflows
Example usage
struct YourApp: View {
@EnvironmentObject var cloneable: CloneablePlatform
var body: some View {
CloneableWorkflowWrapper(cloneablePlatform: cloneable) {
// The rest of your apps views and children views
if (cloneable.syncedWorkflows != nil && !cloneable.syncedWorkflows!.isEmpty){
List {
Section(header: Text("Workflows")
.font(.system(size: 24, weight: .bold))
.foregroundColor(Color.primary)
.textCase(nil)
.padding([.leading], 0)
) {
ForEach(cloneable.syncedWorkflows!) { workflow in
VStack {
Text(workflow.workflowName)
.font(.headline)
Text(workflow.workflowDescription)
}
}
}
}
}
}
}
}Available parameters for each workflow
Example usage
Last updated



