---
title: hasMotion
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/transitionproperties/hasmotion
---

# hasMotion

Whether the transition includes motion.

## Declaration

```swift
var hasMotion: Bool
```

## Discussion

Discussion When this behavior is included in a transition, that transition will be replaced by opacity when Reduce Motion is enabled. Defaults to true.

## See Also

### Creating the transition properties

- [init(hasMotion:)](swiftui/transitionproperties/init(hasmotion:).md)
