---
title: "NSMakeSize(_:_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsmakesize(_:_:)"
---

# NSMakeSize(_:_:)

Returns a new NSSize from the specified values.

## Declaration

```swift
func NSMakeSize(_ w: Double, _ h: Double) -> NSSize
```

## Return Value

Return Value An NSSize having the specified width and height.

## See Also

### Managing Sizes

- [NSEqualSizes(_:_:)](foundation/nsequalsizes(_:_:).md)
- [NSSizeFromString(_:)](foundation/nssizefromstring(_:).md)
- [NSStringFromSize(_:)](foundation/nsstringfromsize(_:).md)
- [NSSizeFromCGSize(_:)](foundation/nssizefromcgsize(_:).md)
- [NSSizeToCGSize(_:)](foundation/nssizetocgsize(_:).md)
