Contents

charge

The charge associated with the item.

Declaration

var charge: CGFloat { get set }

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