Layout | Apple Developer Documentation
func sizeThatFits(proposal: ProposedViewSize, subviews: Self.Subviews, cache: inout Self.Cache) -> CGSize func placeSubviews(in: CGRect, proposal: ProposedViewSize, subviews: Self.Subviews, cache: inout Self.Cache) Layout.Subviews Reporting layout container characteristics func explicitAlignment(of:in:proposal:subviews:cache:) func spacing(subviews: Self.Subviews, cache: inout Self.Cache) -> ViewSpacing static var layoutProperties: LayoutProperties Managing a cache func makeCache(subviews: Self.Subviews) -> Self.Cache func updateCache(inout Self.Cache, subviews: Self.Subviews) Cache Supporting types func callAsFunction (() -> V) -> some View Instance Methods func depthAlignment(DepthAlignment) -> some Layout func depthAlignment (DepthAlignment, content: () -> Content) -> some View LayoutSubview LayoutSubviews Configuring a custom layout LayoutProperties ProposedViewSize ViewSpacing Associating values with views in a custom layout You traditionally arrange views in your app’s
To navigate the symbols, press Up Arrow, Down Arrow, Left Arrow or Right Arrow No items were found 1 item was found {number} items were found. Tab back to navigate through them. re looking for can't be found."},"color-scheme":{"select":"Select a color scheme preference","auto":"Auto","dark":"Dark","light":"Light"},"accessibility":{"strike":{"start":"start of stricken text","end":"end of stricken text"},"code":{"start":"start of code block","end":"end of code block"},"skip-navigation":"Skip Navigation","in-page-link":"in page link"},"select-language":"Select the language for this page","icons":
Explore this link on the map →related reading
- Laying out a simple view | Apple Developer Documentationdeveloper.apple.com
- allowsHitTesting(_:) | Apple Developer Documentationdeveloper.apple.com
- AnyView | Apple Developer Documentationdeveloper.apple.com
- ViewBuilder | Apple Developer Documentationdeveloper.apple.com
- Configuring views | Apple Developer Documentationdeveloper.apple.com
- Using stacks to arrange views | Apple Developer Documentationdeveloper.apple.com
- id(_:) | Apple Developer Documentationdeveloper.apple.com
- Impeccable: The missing upgrade to Anthropic's impeccable skillimpeccable.style
- onChange(of:initial:_:) | Apple Developer Documentationdeveloper.apple.com
- CADisplayLink | Apple Developer Documentationdeveloper.apple.com
- Reducing view modifier maintenance | Apple Developer Documentationdeveloper.apple.com
- Group | Apple Developer Documentationdeveloper.apple.com