<!--
{
  "availability" : [
    "iOS: 17.5.0 -",
    "iPadOS: 17.5.0 -",
    "macCatalyst: 17.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICanvasFeedbackGenerator/alignmentOccurred(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICanvasFeedbackGenerator(im)alignmentOccurredAtLocation:"
  },
  "title" : "alignmentOccurred(at:)"
}
-->

# alignmentOccurred(at:)

Triggers feedback to indicate when an alignment occurs, such as snapping an object to a guide or ruler.

```
func alignmentOccurred(at location: CGPoint)
```

---

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)