<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Optional/makeExpression()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Sq21AppIntentsTypeSupportAA21IntentValueExpressingRzlE14makeExpressionAA0efI0VyF"
  },
  "title" : "makeExpression()"
}
-->

# makeExpression()

Creates an expression that represents this optional intent value.

```
func makeExpression() -> IntentValueExpression
```

## Return Value

An intent value expression representing this optional value.

## Discussion

This method handles both the `.some` and `.none` cases:

- For `.none`, it creates a pending expression that will resolve to a null value
- For `.some`, it delegates to the wrapped value’s expression creation

---

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)