# TextProofreaderStreamResult

    class TextProofreaderStreamResult: NSObject

The result of a streaming proofread operation.
- `
  ### [init(chunk:corrections:done:)](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/TextProofreaderStreamResult.md.txt#/c:objc(cs)MPPTextProofreaderStreamResult(im)initWithChunk:corrections:done:)

  ` Initializes a new `MPPTextProofreaderStreamResult` with the given chunk and done state.

  #### Declaration

  Swift

      init(chunk: String, corrections: [Correction]?, done: Bool)

  #### Parameters

  |---|---|
  | `chunk` | The generated proofread text chunk. |
  | `corrections` | The list of corrections. |
  | `done` | Whether the proofreading is done. |

  #### Return Value

  An initialized `MPPTextProofreaderStreamResult`.
- `
  ### [chunk](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/TextProofreaderStreamResult.md.txt#/c:objc(cs)MPPTextProofreaderStreamResult(py)chunk)

  ` The generated proofread text chunk.

  #### Declaration

  Swift

      var chunk: String { get }

- `
  ### [corrections](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/TextProofreaderStreamResult.md.txt#/c:objc(cs)MPPTextProofreaderStreamResult(py)corrections)

  ` The list of corrections to transform the input text to the proofread text. Only populated when `done` is YES.

  #### Declaration

  Swift

      var corrections: [Correction]? { get }

- `
  ### [done](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/TextProofreaderStreamResult.md.txt#/c:objc(cs)MPPTextProofreaderStreamResult(py)done)

  ` Whether the proofreading is done.

  #### Declaration

  Swift

      var done: Bool { get }