---
title: "init(size:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsvalue/init(size:)"
---

# init(size:)

Creates a new value object containing the specified Foundation size structure.

## Declaration

```swift
init(size: NSSize)
```

## Parameters

- `size`: The value for the new object.

## Return Value

Return Value A new value object that contains the size information.

## See Also

### Related Documentation

- [NSSize](foundation/nssize.md)

### Working with Foundation Geometry Values

- [init(point:)](foundation/nsvalue/init(point:).md)
- [init(rect:)](foundation/nsvalue/init(rect:).md)
- [pointValue](foundation/nsvalue/pointvalue.md)
- [sizeValue](foundation/nsvalue/sizevalue.md)
- [rectValue](foundation/nsvalue/rectvalue.md)
