ios-26-platform by johnrogers/claude-swift-engineering
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill ios-26-platformiOS 26 引入了 Liquid Glass,这是苹果的下一代材料设计系统,能够动态弯曲光线、有机移动,并自动适应所有平台。
iOS 26 通过新材料(Liquid Glass)、SwiftUI API(WebView、Chart3D、@Animatable)和高级功能(@BackoffAnimation、自由形态窗口)实现了 UI 现代化。核心原则是:现代 UI 在编译时自动更新;大部分 Liquid Glass 的优势在通过 Xcode 26 重新编译后即可“免费”获得。
即使内容只有很小的可能性被需要,也务必加载参考文件。 拥有上下文总比错过某个模式或犯错误要好。
| 参考 | 加载时机 |
|---|---|
| Liquid Glass | 实现玻璃效果、选择 Regular 与 Clear 变体,或理解视觉属性时 |
| Automatic Adoption | 理解 iOS 26 自动更改的内容与需要代码更改的内容时 |
| SwiftUI APIs | 使用 WebView、Chart3D、@Animatable、AttributedString 或新的视图修饰符时 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| Toolbar& Navigation | 使用间隔符、变形、玻璃按钮样式或搜索功能自定义工具栏时 |
| Backward Compatibility | 在支持 iOS 26 的同时需要支持 iOS 17/18,或使用 UIDesignRequiresCompatibility 时 |
忽略向后兼容性 — 针对 iOS 26+ 而不使用 @available 防护会破坏对 iOS 17/18 的支持。对于 Liquid Glass 或新 API,务必使用 if #available(iOS 26, *)。
过度使用玻璃效果 — 将玻璃效果应用于内容区域而不仅仅是导航区域,会造成视觉混乱。玻璃效果适用于:标签栏、工具栏、表单、导航栏。不适用于内容区域。
动画性能问题 — Liquid Glass 动画可能开销较大。在发布前,请尊重“减弱动态效果”辅助功能设置,并使用 Instruments 26 进行性能分析。
假设 Clear 变体效果良好 — Clear 变体仅适用于媒体丰富的背景(照片、视频)。95% 的情况下 Regular 变体是正确的。只有在明确需要超高透明度时才使用 Clear 变体。
未在实际设备上测试 — 模拟器的渲染效果与硬件不同。请在 iPhone 15 Pro、iPad 和 Mac 上测试玻璃效果,以验证视觉质量。
将旧的 UIView 模式与新的玻璃效果混用 — 将基于 UIView 的导航与 iOS 26 玻璃效果混合使用会导致外观不一致。请完全迁移到 SwiftUI,或使用 UIViewRepresentable 仔细包装。
每周安装量
106
代码仓库
GitHub 星标数
177
首次出现
2026年1月23日
安全审计
安装于
claude-code88
opencode88
codex86
gemini-cli83
github-copilot79
cursor76
iOS 26 introduces Liquid Glass, Apple's next-generation material design system that dynamically bends light, moves organically, and adapts automatically across all platforms.
iOS 26 modernizes UI with new materials (Liquid Glass), SwiftUI APIs (WebView, Chart3D, @Animatable), and advanced features (@BackoffAnimation, free-form windows). The core principle: modern UI gets updated automatically at compile time; most Liquid Glass benefits are "free" from recompiling with Xcode 26.
ALWAYS load reference files if there is even a small chance the content may be required. It's better to have the context than to miss a pattern or make a mistake.
| Reference | Load When |
|---|---|
| Liquid Glass | Implementing glass effects, choosing Regular vs Clear variants, or understanding visual properties |
| Automatic Adoption | Understanding what iOS 26 changes automatically vs what requires code |
| SwiftUI APIs | Using WebView, Chart3D, @Animatable, AttributedString, or new view modifiers |
| Toolbar& Navigation | Customizing toolbars with spacers, morphing, glass button styles, or search |
| Backward Compatibility | Supporting iOS 17/18 alongside iOS 26, or using UIDesignRequiresCompatibility |
Ignoring backward compatibility — Targeting iOS 26+ without @available guards breaks iOS 17/18 support. Always use if #available(iOS 26, *) for Liquid Glass or new APIs.
Over-using glass effect — Applying glass to content areas, not just navigation, creates visual noise. Glass works for: tab bars, toolbars, sheets, navigation. NOT for content areas.
Animation performance issues — Liquid Glass animations can be expensive. Respect Reduce Motion accessibility setting and profile with Instruments 26 before shipping.
Assuming Clear variant looks good — Clear is for media-rich backgrounds only (photos, video). Regular variant is correct 95% of the time. Only use Clear if you explicitly need the ultra-transparency.
Not testing on actual devices — Simulator rendering differs from hardware. Test glass effects on iPhone 15 Pro, iPad, and Mac to verify visual quality.
Using old UIView patterns with new glass — Mixing UIView-based navigation with iOS 26 glass creates inconsistent appearances. Migrate fully to SwiftUI or wrap carefully with UIViewRepresentable.
Weekly Installs
106
Repository
GitHub Stars
177
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
claude-code88
opencode88
codex86
gemini-cli83
github-copilot79
cursor76
Flutter布局指南:构建响应式UI的约束规则与自适应设计模式
1,200 周安装
Tavily API 使用指南:网络搜索、内容提取与站点地图生成工具
246 周安装
Elasticsearch 文件数据导入工具 - 流式处理 NDJSON/CSV/Parquet/Arrow 文件到 ES
247 周安装
Dart Drift 数据库使用指南:SQLite 与 PostgreSQL 类型安全查询
245 周安装
T8语法叙事文本可视化技能 - 数据驱动叙事与文本可视化解决方案
256 周安装
基于角色的访问控制RBAC系统实现指南 | 权限管理、ABAC与安全最佳实践
249 周安装
React组件架构指南:函数式组件、Hooks、TypeScript最佳实践与性能优化
250 周安装