# Stroke

    class Stroke: NSObject

Represents a single user-drawn stroke for interactive segmentation.
- `
  ### [init(points:brushMode:isCompleted:)](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/Stroke.md.txt#/c:objc(cs)MPPStroke(im)initWithPoints:brushMode:isCompleted:)

  ` Initializes a new `Stroke` with the given points, brush mode, and completion status.

  #### Declaration

  Swift

      init(points: [NormalizedKeypoint], brushMode: BrushMode, isCompleted: Bool)

  #### Parameters

  |---|---|
  | `points` | The sequence of normalized key points forming the stroke. |
  | `brushMode` | The brush mode used for this stroke. |
  | `isCompleted` | Whether the stroke is complete. |

  #### Return Value

  An instance of `Stroke` initialized with the given parameters.
- `
  ### [brushMode](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/Stroke.md.txt#/c:objc(cs)MPPStroke(py)brushMode)

  ` The brush mode used for this stroke.

  #### Declaration

  Swift

      var brushMode: BrushMode { get }

- `
  ### [isCompleted](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/Stroke.md.txt#/c:objc(cs)MPPStroke(py)isCompleted)

  ` Whether the stroke is complete.

  #### Declaration

  Swift

      var isCompleted: Bool { get }

- `
  ### [points](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/Stroke.md.txt#/c:objc(cs)MPPStroke(py)points)

  ` The sequence of normalized key points forming the stroke.

  #### Declaration

  Swift

      var points: [NormalizedKeypoint] { get }