<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/LayoutSubview/place(at:anchor:proposal:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13LayoutSubviewV5place2at6anchor8proposalySo7CGPointV_AA9UnitPointVAA16ProposedViewSizeVtF"
  },
  "title" : "place(at:anchor:proposal:)"
}
-->

# place(at:anchor:proposal:)

Assigns a position and proposed size to the subview.

```
func place(at position: CGPoint, anchor: UnitPoint = .topLeading, proposal: ProposedViewSize)
```

## Parameters

`position`

The place where the anchor of the subview should
appear in its container view, relative to container’s bounds.

`anchor`

The unit point on the subview that appears at `position`.
You can use a built-in point, like [`center`](/documentation/SwiftUI/UnitPoint/center), or
you can create a custom [`UnitPoint`](/documentation/SwiftUI/UnitPoint).

`proposal`

A proposed size for the subview. In SwiftUI,
views choose their own size, but can take a size proposal from
their parent view into account when doing so.

## Discussion

Call this method from your implementation of the [`Layout`](/documentation/SwiftUI/Layout)
protocol’s [`placeSubviews(in:proposal:subviews:cache:)`](/documentation/SwiftUI/Layout/placeSubviews(in:proposal:subviews:cache:))
method for each subview arranged by the layout.
Provide a position within the container’s bounds where the subview
should appear, and an anchor that indicates which part of the subview
appears at that point.

Include a proposed size that the subview can take into account when
sizing itself. To learn the subview’s size for a given proposal before
calling this method, you can call the [`dimensions(in:)`](/documentation/SwiftUI/LayoutSubview/dimensions(in:)) or
[`sizeThatFits(_:)`](/documentation/SwiftUI/LayoutSubview/sizeThatFits(_:)) method on the subview with the same proposal.
That enables you to know subview sizes before committing to subview
positions.

> Important: Call this method only from within your
> ``doc://com.apple.SwiftUI/documentation/SwiftUI/Layout`` type’s implementation of the
> ``doc://com.apple.SwiftUI/documentation/SwiftUI/Layout/placeSubviews(in:proposal:subviews:cache:)`` method.

If you call this method more than once for a subview, the last call
takes precedence. If you don’t call this method for a subview, the
subview appears at the center of its layout container and uses the
layout container’s size proposal.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)