---
title: "replacingUnspecifiedDimensions(by:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/proposedviewsize/replacingunspecifieddimensions(by:)"
---

# replacingUnspecifiedDimensions(by:)

Creates a new proposal that replaces unspecified dimensions in this proposal with the corresponding dimension of the specified size.

## Declaration

```swift
func replacingUnspecifiedDimensions(by size: CGSize = CGSize(width: 10, height: 10)) -> CGSize
```

## Parameters

- `size`: A set of concrete values to use for the size proposal in place of any unspecified dimensions. The default value is 10 for both dimensions.

## Return Value

Return Value A new, fully specified size proposal.

## Discussion

Discussion Use the default value to prevent a flexible view from disappearing into a zero-sized frame, and ensure the unspecified value remains visible during debugging.
