# `GSLayer verticalShift:otherShifts:`

*Instance Method*

Shifts layer content vertically while compensating components for shifts of their base glyphs.

## Declaration

```swift
func verticalShift(_ shift: CGFloat, otherShifts: [String : NSValue]?)
```

```objc
- (void) verticalShift:(CGFloat) shift otherShifts:(NSDictionary<NSString *,NSValue *> *) otherShifts;
```

```python
verticalShift_otherShifts_(shift: float, otherShifts: dict[str, NSValue])
```

## Parameters

- `shift` — The vertical displacement in layer coordinates.
- `otherShifts` — Base glyph names mapped to their simultaneous displacement vectors.

## See Also

### Shifting Content

- [`GSLayer horizontalShift:otherShifts:`](/Core/GlyphsCore/GSLayer/horizontalShift:otherShifts:) — Shifts layer content horizontally while compensating components for shifts of their base glyphs.
- [`GSLayer moveContent:`](/Core/GlyphsCore/GSLayer/moveContent:) — Moves the shapes, anchors, guides, and background image by an offset.

