RSDModalStepDataSource

public protocol RSDModalStepDataSource : RSDTableDataSource

RSDModalStepDataSource extends RSDTableDataSource for a data source that includes entering information using a modal step.

  • The taskViewModel to use to instantiate an appropriate view controller for the given modal step table item.

    Declaration

    Swift

    func taskViewModel(for tableItem: RSDModalStepTableItem) -> RSDTaskViewModel?

    Parameters

    tableItem

    The table item that was selected.

    Return Value

    The step to display.

  • Save an answer from a subtask that was presented modally.

    Declaration

    Swift

    func saveAnswer(for tableItem: RSDModalStepTableItem, from taskViewModel: RSDTaskViewModel)

    Parameters

    tableItem

    The table item that was selected.

    taskViewModel

    The task view model from which to save the answers.