<?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/views/3-ViewStyles/</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/views/3-ViewStyles/index.xml" rel="self" type="application/rss+xml"/><item><title>3.1 把 Liquid Glass 应用到自定义视图</title><link>https://before80.github.io/prgms/Swift/SwiftUI/views/3-ViewStyles/3.1-ApplyingLiquidGlassToCustomViews/</link><pubDate>Sat, 12 Sep 2026 12:47:47 +0800</pubDate><guid>https://before80.github.io/prgms/Swift/SwiftUI/views/3-ViewStyles/3.1-ApplyingLiquidGlassToCustomViews/</guid><description>&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://developer.apple.com/documentation/swiftui/applying-liquid-glass-to-custom-views"&gt;https://developer.apple.com/documentation/swiftui/applying-liquid-glass-to-custom-views&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="31-把-liquid-glass-应用到自定义视图"&gt;3.1 把 Liquid Glass 应用到自定义视图&lt;/h1&gt;
&lt;p&gt;用 Liquid Glass 效果配置、组合并形变视图。&lt;/p&gt;
&lt;h2 id="Overview"&gt;概述&lt;/h2&gt;
&lt;p&gt;Apple 各平台的界面都采用了一种新的动态材质 Liquid Glass，它把玻璃的光学特性与流动感结合在一起。Liquid Glass 是一种会模糊其后方内容、反射周围内容的颜色与光线，并实时响应触摸和指针交互的材质。SwiftUI 中的标准组件都使用 Liquid Glass。把 Liquid Glass 用到自定义组件上，就能用独特的动画与过渡来移动、组合这些组件，并在它们之间形变。&lt;/p&gt;</description></item></channel></rss>