<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Layout on 编程心语</title>
		<link>https://www.ithome.me/tags/layout/</link>
		<description>Recent content in Layout on 编程心语</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<lastBuildDate>Mon, 27 Jul 2026 19:08:55 +0000</lastBuildDate>
		
			<atom:link href="https://www.ithome.me/tags/layout/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>SwiftUI 自定义布局协议：用 Layout 构建弹性 UI 容器</title>
				<link>https://www.ithome.me/post/2026/07/28/swiftui-layout-custom-container/</link>
				<pubDate>Tue, 28 Jul 2026 08:00:00 +0800</pubDate>
				<guid>https://www.ithome.me/post/2026/07/28/swiftui-layout-custom-container/</guid>
				<description>&lt;p&gt;从 iOS 16 开始，SwiftUI 引入了 &lt;code&gt;Layout&lt;/code&gt; 协议，让开发者可以自定义视图的排列方式，不再局限于 &lt;code&gt;HStack&lt;/code&gt;、&lt;code&gt;VStack&lt;/code&gt; 和 &lt;code&gt;ZStack&lt;/code&gt; 这三大件。这篇文章带你从零实现一个实用的自定义布局容器。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
