<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>@MainActor on 编程心语</title>
		<link>https://www.ithome.me/tags/@mainactor/</link>
		<description>Recent content in @MainActor on 编程心语</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<lastBuildDate>Tue, 04 Aug 2026 14:59:27 +0800</lastBuildDate>
		
			<atom:link href="https://www.ithome.me/tags/@mainactor/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>SwiftUI @MainActor 深入理解：告别主线程崩溃与 UI 无响应</title>
				<link>https://www.ithome.me/post/2026/07/23/swiftui-mainactor-deep-dive/</link>
				<pubDate>Thu, 23 Jul 2026 08:00:00 +0800</pubDate>
				<guid>https://www.ithome.me/post/2026/07/23/swiftui-mainactor-deep-dive/</guid>
				<description>&lt;h2 id=&#34;为什么你的-swiftui-应用偶尔白屏或崩溃&#34;&gt;为什么你的 SwiftUI 应用偶尔白屏或崩溃？&lt;/h2&gt;&#xA;&lt;p&gt;如果你写过 SwiftUI 应用，大概率遇到过这种场景：App 跑起来后点几下按钮，界面突然卡住不动，或者控制台冒出一堆 &lt;code&gt;Main Thread Checker&lt;/code&gt; 警告，甚至直接崩溃。常见的错误信息是：&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
