---
title: charge
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidynamicitembehavior/charge
---

# charge

The charge associated with the item.

## Declaration

```swift
var charge: CGFloat { get set }
```

## Discussion

Discussion Charge determines the degree to which the item interacts with electric and magnetic fields. The value in this property has no units, so it is up to you to set the charge and field strengths to appropriate values for your interface. The default value of this property is 0.0.

## See Also

### Configuring a dynamic item behavior

- [addAngularVelocity(_:for:)](uikit/uidynamicitembehavior/addangularvelocity(_:for:).md)
- [addLinearVelocity(_:for:)](uikit/uidynamicitembehavior/addlinearvelocity(_:for:).md)
- [allowsRotation](uikit/uidynamicitembehavior/allowsrotation.md)
- [angularResistance](uikit/uidynamicitembehavior/angularresistance.md)
- [angularVelocity(for:)](uikit/uidynamicitembehavior/angularvelocity(for:).md)
- [linearVelocity(for:)](uikit/uidynamicitembehavior/linearvelocity(for:).md)
- [density](uikit/uidynamicitembehavior/density.md)
- [elasticity](uikit/uidynamicitembehavior/elasticity.md)
- [friction](uikit/uidynamicitembehavior/friction.md)
- [resistance](uikit/uidynamicitembehavior/resistance.md)
- [isAnchored](uikit/uidynamicitembehavior/isanchored.md)
