---
title: "scale(by:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/vectorarithmetic/scale(by:)"
---

# scale(by:)

Multiplies each component of this value by the given value.

## Declaration

```swift
mutating func scale(by rhs: Double)
```

## See Also

### Manipulating values

- [magnitudeSquared](swiftui/vectorarithmetic/magnitudesquared.md)
- [scaled(by:)](swiftui/vectorarithmetic/scaled(by:).md)
- [interpolate(towards:amount:)](swiftui/vectorarithmetic/interpolate(towards:amount:).md)
- [interpolated(towards:amount:)](swiftui/vectorarithmetic/interpolated(towards:amount:).md)
