SwiftUI Docs
老年人备忘录Fast, readable references
SwiftUI Cheatsheet

SwiftUI 老年人备忘录SwiftUI Memory Notes

给经常忘记 SwiftUI 写法的人准备的速查手册。左边看代码,右边看 iPhone 预览,快速想起来这个组件怎么写、长什么样、什么时候用。A quick reference for people who keep forgetting SwiftUI syntax. Read the code on the left, check the iPhone preview on the right, and quickly remember how each API works.

4
分类Category
20
文档Docs
23
章节Sections
JSON
本地数据Local Source
代码 + 预览Code + Preview
像 Xcode 一样边看代码边看效果Read code and preview results like Xcode
Swift 代码Swift code
iPhone 预览iPhone preview
语法高亮代码片段Syntax-highlighted snippets
每个代码块都内置复制按钮Copy button built into every code block
Button("Save") {
    print("Tap")
}
.tint(.blue)
分类Category

组件Components

SwiftUI 常用组件,覆盖文本、按钮、输入、列表和常见展示控件。Common SwiftUI components covering text, buttons, inputs, lists, and display controls.

打开集合Open collection
分类Category

布局Layout

理解栈布局、网格和自适应容器,快速搭建结构清晰的界面。Understand stacks, grids, and adaptive containers for clear interface structure.

打开集合Open collection
分类Category

导航Navigation

组织页面层级、标签栏和跳转关系,构建完整的应用信息架构。Organize page hierarchy, tab bars, and navigation flows.

打开集合Open collection
分类Category

弹出展示Presentation

弹出、覆盖和临时展示界面,集中学习 sheet、alert、popover 等展示模式。Presentation patterns for sheets, alerts, popovers, and temporary UI.

打开集合Open collection
精选Featured

常用文档Popular docs

查看全部主题Explore all topics