# `GSAnchor initWithName:position:`

*Initializer*

Creates a detached anchor.

## Declaration

```swift
init(name: String, position: CGPoint)
```

```objc
- (instancetype) initWithName:(NSString *) name position:(CGPoint) position;
```

```python
initWithName_position_(name: str, position: CGPoint) -> GSAnchor
```

## Parameters

- `name` — The anchor name.
- `position` — The position in layer coordinates.

