<!--
{
  "availability" : [
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/effectContainerView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWritingToolsCoordinator(py)effectContainerView"
  },
  "title" : "effectContainerView"
}
-->

# effectContainerView

The view that Writing Tools uses to display visual effects during
the text-rewriting process.

```
weak var effectContainerView: NSView? { get set }
```

## Discussion

Writing Tools uses the view in this property to host the visual effects
it creates when making interactive changes to your view’s content.
These visual effects let people know the state of the text and provide
feedback about what’s happening to it. Set this property to a subview
that sits visually above, and covers, all of the text in your custom
text view. If you don’t assign a value to this property, the coordinator
places its own effect view in front of the subviews in your custom view.
The default value of this property is `nil`.

If you display your view’s text using multiple text containers, implement the
[`writingToolsCoordinator(_:requestsSingleContainerSubrangesOf:in:completion:)`](/documentation/AppKit/NSWritingToolsCoordinator/Delegate-swift.protocol/writingToolsCoordinator(_:requestsSingleContainerSubrangesOf:in:completion:))
method to request multiple previews.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)