---
title: "TabletopInteraction.HoverAlignmentBehavior.align(_:with:)"
framework: tabletopkit
role: symbol
role_heading: Case
path: "tabletopkit/tabletopinteraction/hoveralignmentbehavior/align(_:with:)"
---

# TabletopInteraction.HoverAlignmentBehavior.align(_:with:)

align indicates that the equipment should orient itself to align the closest source to the target. The equipment’s movement is also limited to prevent it from penetrating the target.

## Declaration

```swift
case align(TabletopInteraction.HoverAlignmentSource, with: TabletopInteraction.CollisionTargets)
```

## See Also

### Alignment Behaviors

- [TabletopInteraction.HoverAlignmentBehavior.automatic(targets:)](tabletopkit/tabletopinteraction/hoveralignmentbehavior/automatic(targets:).md)
- [TabletopInteraction.HoverAlignmentBehavior.disabled](tabletopkit/tabletopinteraction/hoveralignmentbehavior/disabled.md)
- [TabletopInteraction.HoverAlignmentBehavior.stop(at:)](tabletopkit/tabletopinteraction/hoveralignmentbehavior/stop(at:).md)
