<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>3 自定义布局 on 编程那些事儿</title><link>https://before80.github.io/prgms/Swift/SwiftUI/viewlayout/3-CustomLayout/</link><description>Recent content in 3 自定义布局 on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sun, 13 Sep 2026 18:20:56 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Swift/SwiftUI/viewlayout/3-CustomLayout/index.xml" rel="self" type="application/rss+xml"/><item><title>3.1 用 SwiftUI 组合自定义布局</title><link>https://before80.github.io/prgms/Swift/SwiftUI/viewlayout/3-CustomLayout/3.1-ComposingCustomLayoutsWithSwiftui/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/viewlayout/3-CustomLayout/3.1-ComposingCustomLayoutsWithSwiftui/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/composing-custom-layouts-with-swiftui"&gt;https://developer.apple.com/documentation/swiftui/composing-custom-layouts-with-swiftui&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="31-用-swiftui-组合自定义布局"&gt;3.1 用 SwiftUI 组合自定义布局&lt;/h1&gt;
&lt;p&gt;使用 SwiftUI 提供的布局工具来排列应用界面中的视图。&lt;/p&gt;
&lt;h2 id="Overview"&gt;概述&lt;/h2&gt;
&lt;p&gt;这个示例应用构建了一个界面，让大家可以为自己最喜欢的宠物种类投票，从而展示了 SwiftUI 提供的许多布局工具。应用提供了为特定宠物类型投票的按钮，并在排行榜上显示各种竞争者的票数和相对排名。它还会显示宠物的头像，其排列方式反映了当前的排名。&lt;/p&gt;</description></item><item><title>3.2 Layout 实现</title><link>https://before80.github.io/prgms/Swift/SwiftUI/viewlayout/3-CustomLayout/3.2-LayoutImplementations/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/viewlayout/3-CustomLayout/3.2-LayoutImplementations/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/gridlayout/layout-implementations"&gt;https://developer.apple.com/documentation/swiftui/gridlayout/layout-implementations&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="32-layout-实现"&gt;3.2 Layout 实现&lt;/h1&gt;
&lt;h2 id="Structures"&gt;结构体&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.apple.com/documentation/swiftui/gridlayout/cache"&gt;GridLayout.Cache&lt;/a&gt; — 一种有状态的网格布局算法。&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>