<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>4 持久化存储 on 编程那些事儿</title><link>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/</link><description>Recent content in 4 持久化存储 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/datastorage/4-PersistentStorage/index.xml" rel="self" type="application/rss+xml"/><item><title>4.1 用 SwiftUI 恢复应用状态</title><link>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.1-RestoringYourAppSStateWithSwiftui/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.1-RestoringYourAppSStateWithSwiftui/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/restoring-your-app-s-state-with-swiftui"&gt;https://developer.apple.com/documentation/swiftui/restoring-your-app-s-state-with-swiftui&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="41-用-swiftui-恢复应用状态"&gt;4.1 用 SwiftUI 恢复应用状态&lt;/h1&gt;
&lt;p&gt;保留用户当前的活动，为使用者提供应用连续性。&lt;/p&gt;
&lt;h2 id="Overview"&gt;概述&lt;/h2&gt;
&lt;p&gt;这个 SwiftUI 示例项目演示如何保留应用的状态信息，并在后续启动时把应用恢复到之前的状态。在后续启动时把界面恢复到上一次的交互位置，可以为用户提供连续性，让他们快速完成正在进行的任务。&lt;/p&gt;</description></item><item><title>4.2 加载并显示大型数据源</title><link>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.2-LoadingAndDisplayingALargeDataFeed/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.2-LoadingAndDisplayingALargeDataFeed/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/loading-and-displaying-a-large-data-feed"&gt;https://developer.apple.com/documentation/swiftui/loading-and-displaying-a-large-data-feed&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="42-加载并显示大型数据源"&gt;4.2 加载并显示大型数据源&lt;/h1&gt;
&lt;p&gt;在后台消费数据，并通过批量导入和防止重复记录来降低内存占用。&lt;/p&gt;
&lt;h2 id="Overview"&gt;概述&lt;/h2&gt;
&lt;p&gt;这个示例创建了一个应用，它通过消费美国地质调查局（USGS）的实时数据源，显示过去 30 天内记录到的美国地震列表。&lt;/p&gt;</description></item><item><title>4.3 DynamicProperty 实现</title><link>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.3-DynamicpropertyImplementations/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.3-DynamicpropertyImplementations/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/fetchrequest/dynamicproperty-implementations"&gt;https://developer.apple.com/documentation/swiftui/fetchrequest/dynamicproperty-implementations&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="43-dynamicproperty-实现"&gt;4.3 DynamicProperty 实现&lt;/h1&gt;
&lt;h2 id="Instance-Methods"&gt;实例方法&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.apple.com/documentation/swiftui/fetchrequest/update()"&gt;update()&lt;/a&gt; —— 更新已获取的结果。&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>4.4 SectionedFetchRequest 的 DynamicProperty 实现</title><link>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.4-SectionedfetchrequestDynamicpropertyImplementations/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/datastorage/4-PersistentStorage/4.4-SectionedfetchrequestDynamicpropertyImplementations/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/sectionedfetchrequest/dynamicproperty-implementations"&gt;https://developer.apple.com/documentation/swiftui/sectionedfetchrequest/dynamicproperty-implementations&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="44-sectionedfetchrequest-的-dynamicproperty-实现"&gt;4.4 SectionedFetchRequest 的 DynamicProperty 实现&lt;/h1&gt;
&lt;h2 id="Instance-Methods"&gt;实例方法&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.apple.com/documentation/swiftui/sectionedfetchrequest/update()"&gt;update()&lt;/a&gt; — 更新已获取的结果。&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>