---
title: flushUpdates
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiview/animationoptions/flushupdates
---

# flushUpdates

Flush all pending updates (including traits, properties, and layout) whenever the animation context changes. This includes flushing updates:

## Declaration

```swift
static var flushUpdates: UIView.AnimationOptions { get }
```

## Discussion

Discussion Before entering an animation scope, for invalidations that happened previously without animation. Before entering a nested animation scope, for invalidations that happened in the outer animation scope. Before exiting any animation scope, for invalidations that happened in that animation scope. Before disabling animations, for invalidations that happened in the animation scope with animations enabled. Before re-enabling animations, for invalidations that happened in the scope with animations disabled. This animation option implicitly applies to any nested animation scopes, even if they don’t explicitly use this option.
