<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeveloperToolsSupport",
  "identifier" : "/documentation/DeveloperToolsSupport/LibraryContentProvider/ModifierBase",
  "metadataVersion" : "0.1.0",
  "role" : "Associated Type",
  "symbol" : {
    "kind" : "Associated Type",
    "modules" : [
      "DeveloperToolsSupport"
    ],
    "preciseIdentifier" : "s:21DeveloperToolsSupport22LibraryContentProviderP12ModifierBaseQa"
  },
  "title" : "ModifierBase"
}
-->

# ModifierBase

A type to use as a base for modifier completions.

```
associatedtype ModifierBase = Any
```

## Discussion

To verify that the completion for a modifier compiles, you specify
modifiers as they apply to some base type. Since most modifiers can
modify any SwiftUI view, you typically specify any concrete
implementation of the
<doc://com.apple.documentation/documentation/SwiftUI/View> protocol for
`ModifierBase`. However, some modifiers apply to more specific types,
like <doc://com.apple.documentation/documentation/SwiftUI/Image> or
<doc://com.apple.documentation/documentation/SwiftUI/Text>,
or to an entirely different type like
<doc://com.apple.documentation/documentation/SwiftUI/Shape>.

---

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)