flâneur — a map of the web's best reading

Laying out a simple view | Apple Developer Documentation

developer.apple.com · 185 words · saved by 1 readers

func containerBackground (for: ContainerBackgroundPlacement, alignment: Alignment, content: () -> V) -> some View ContainerBackgroundPlacement Automatically choosing the layout that fits ViewThatFits Separators Spacer Divider Layout adjustments Finetuning a layout Laying out a simple view Inspecting view layout Adding padding around a view func padding(_:) func padding(Edge.Set, CGFloat?) -> some View func padding3D(_:) func padding3D(Edge3D.Set, CGFloat?) -> some View func scenePadding(Edge.Set) -> some View func scenePadding(ScenePadding, edges: Edge.Set) -> some View ScenePadding Influencing a view’s size func frame(width: CGFloat?, height: CGFloat?, alignment: Alignment) -> some View func frame(depth: CGFloat?, alignment: DepthAlignment) -> some View func frame(minWidth: CGFloat?, idealWidth: CGFloat?, maxWidth: CGFloat?, minHeight: CGFloat?, idealHeight: CGFloat?, maxHeight: CGFloat?, alignment: Alignment) -> some View func frame(minDepth: CGFloat?, idealDepth: CGFloat?, maxDept

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