<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Animation/easeInOut",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI9AnimationV9easeInOutACvpZ"
  },
  "title" : "easeInOut"
}
-->

# easeInOut

An animation that combines the behaviors of in and out easing
animations.

```
static var easeInOut: Animation { get }
```

## Return Value

An ease-in ease-out animation with the default duration.

## Discussion

An easing animation provides motion with a natural feel by varying
the acceleration and deceleration of the animation, which matches
how things tend to move in reality. An ease in and out animation
starts slowly, increasing its speed towards the halfway point, and
finally decreasing the speed towards the end of the animation.

The `easeInOut` animation has a default duration of 0.35 seconds. To
specify the duration, use the [`easeInOut(duration:)`](/documentation/SwiftUI/Animation/easeInOut(duration:)) method.

The following code shows an example of animating the size changes of a
[`Circle`](/documentation/SwiftUI/Circle) using an ease in and out animation.

```
struct ContentView: View {
    @State private var scale = 0.5

    var body: some View {
        VStack {
            Circle()
                .scale(scale)
                .animation(.easeInOut, value: scale)
            HStack {
                Button("+") { scale += 0.1 }
                Button("-") { scale -= 0.1 }
            }
        }
    }
}
```

![A video that shows a circle enlarging, then shrinking to its original size using an ease-in ease-out animation.](videos/com.apple.SwiftUI/animation-12-easeineaseout~dark.mp4)

---

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)