分类Category
组件Components
SwiftUI 常用组件,覆盖文本、按钮、输入、列表和常见展示控件。Common SwiftUI components covering text, buttons, inputs, lists, and display controls.
入门Beginner•4 分钟4 min
ButtonButton
用于触发操作的点击控件,支持文本按钮、自定义 Label、样式定制和事件绑定。A control for triggering actions, with text labels, custom labels, styles, and event handlers.
buttonStyleactionroletint
更新于Updated Apr 22, 2026
入门Beginner•3 分钟3 min
TextText
文本排版的基础组件,适合构建标题、正文、注释和强调信息。The basic text view for titles, body copy, notes, and emphasis.
fontforegroundStylelineLimitmultilineTextAlignment
更新于Updated Apr 22, 2026
入门Beginner•3 分钟3 min
ImageImage
展示本地资源、系统图标和远程图片的基础视图。A view for local assets, system symbols, and remote images.
resizablescaledToFitsystemNameclipShape
更新于Updated Apr 22, 2026
入门Beginner•4 分钟4 min
TextFieldTextField
轻量文本输入组件,适合表单、搜索和设置项。A lightweight text input for forms, search, and settings.
textpromptkeyboardTypesubmitLabel
更新于Updated Apr 22, 2026
入门Beginner•3 分钟3 min
ToggleToggle
表示开关状态的控件,适合布尔值设置项。A switch control for Boolean settings.
isOntoggleStyleswitchbinding
更新于Updated Apr 22, 2026
中级Intermediate•5 分钟5 min
ListList
高效渲染滚动列表,适合设置页、导航列表和数据集合展示。Efficient scrolling lists for settings, navigation, and data collections.
ForEachlistStylesectionswipeActions
更新于Updated Apr 22, 2026