<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/SetValueIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents14SetValueIntentP"
  },
  "title" : "SetValueIntent"
}
-->

# SetValueIntent

An intent that contains a value which can be set.

```
protocol SetValueIntent<ValueType> : AppIntent
```

## Overview

```swift
struct ToggleSilentMode: SetValueIntent {
   static var title = LocalizedStringResource("Silent Mode")

   @Parameter(title: "Silent")
   var value: Bool
}
```

## Topics

### Associated Types

[`associatedtype ValueType : _IntentValue`](/documentation/AppIntents/SetValueIntent/ValueType)

### Instance Properties

[`var value: Self.ValueType`](/documentation/AppIntents/SetValueIntent/value)

## Relationships

### Inherits From

[`Sendable`](/documentation/Swift/Sendable)

[`AppIntent`](/documentation/AppIntents/AppIntent)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`PersistentlyIdentifiable`](/documentation/AppIntents/PersistentlyIdentifiable)

---

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)