Functions

The following functions are available globally.

  • Returns the result of executing body with animation installed as the thread’s current animation, by setting it as the animation property of the thread’s current transaction.

    Declaration

    Swift

    public func withAnimation<Result>(_ animation: Animation? = .default, _ body: () throws -> Result) rethrows -> Result