---
title: "init(image:hotSpot:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscursor/init(image:hotspot:)"
---

# init(image:hotSpot:)

Initializes a cursor with the given image and hot spot.

## Declaration

```swift
init(image newImage: UIImage, hotSpot point: NSPoint)
```

```swift
init(image newImage: NSImage, hotSpot point: NSPoint)
```

## Parameters

- `newImage`: The image to assign to the cursor.
- `point`: The point to set as the cursor’s hot spot.

## Return Value

Return Value An initialized cursor object.

## Discussion

Discussion This method is the designated initializer for the class.

## See Also

### Related Documentation

- [image](appkit/nscursor/image.md)
- [Cursor Management](apple-archive/documentation/Cocoa/Conceptual/CursorMgmt.md)
- [hotSpot](appkit/nscursor/hotspot.md)

### Initializing a new cursor

- [init(coder:)](appkit/nscursor/init(coder:).md)
