<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>1 手势 on 编程那些事儿</title><link>https://before80.github.io/prgms/Swift/SwiftUI/eventhandling/1-Gestures/</link><description>Recent content in 1 手势 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/eventhandling/1-Gestures/index.xml" rel="self" type="application/rss+xml"/><item><title>1.1 用手势添加交互性</title><link>https://before80.github.io/prgms/Swift/SwiftUI/eventhandling/1-Gestures/1.1-AddingInteractivityWithGestures/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/eventhandling/1-Gestures/1.1-AddingInteractivityWithGestures/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/adding-interactivity-with-gestures"&gt;https://developer.apple.com/documentation/swiftui/adding-interactivity-with-gestures&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="11-用手势添加交互性"&gt;1.1 用手势添加交互性&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>1.2 组合 SwiftUI 手势</title><link>https://before80.github.io/prgms/Swift/SwiftUI/eventhandling/1-Gestures/1.2-ComposingSwiftuiGestures/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/eventhandling/1-Gestures/1.2-ComposingSwiftuiGestures/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/composing-swiftui-gestures"&gt;https://developer.apple.com/documentation/swiftui/composing-swiftui-gestures&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="12-组合-swiftui-手势"&gt;1.2 组合 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></channel></rss>