<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFieldBehavior/turbulenceField(smoothness:animationSpeed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIFieldBehavior(cm)turbulenceFieldWithSmoothness:animationSpeed:"
  },
  "title" : "turbulenceField(smoothness:animationSpeed:)"
}
-->

# turbulenceField(smoothness:animationSpeed:)

Creates and returns a field behavior object that applies noise to an item in motion.

```
class func turbulenceField(smoothness: CGFloat, animationSpeed speed: CGFloat) -> Self
```

## Parameters

`smoothness`

The smoothness of the turbulence field. Specify a value between `0.0` and `1.0`, where `0.0` indicates the maximum amount of randomness in the generated field and `1.0` indicates the least amount of randomness.

`speed`

The frequency at which the turbulence field changes, measured in Hertz (Hz). Specify `0.0` to create a turbulence field that does not change over time.

## Return Value

A field behavior object that applies turbulence to an item in motion.

## Discussion

The strength of the noise generated by this field is proportional to the velocity of the item in the field.

---

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)