跳到主要内容

开源示例项目

每种技术各一个完整的 iOS App,源码都在 GitHub。截图来自 iPhone 真机。克隆下来照 README 的步骤,在 Windows、Linux 或 macOS 上用 KXBuild 编译,就能装到你的 iPhone 上运行。

SwiftUI Gallery

Swift · SwiftUI · iOS 17 · 15 个演示

控件、布局、列表、弹窗、动画、手势、SF Symbols、Swift Charts、MapKit、SwiftData,每个演示都能直接上手操作。

在 GitHub 查看源码 → Swift 编译步骤 →

SwiftUI Gallery 首页
SwiftUI Gallery 演示页面

Flutter Gallery

Dart · Flutter 3.47 · Material + Cupertino

官方 Flutter Gallery 升级到 Flutter 3.47:Material 与 Cupertino 组件大全、动效与主题,外加 Reply、Shrine、Rally、Crane 四个完整示例 App。

在 GitHub 查看源码 → Flutter 编译步骤 →

Flutter Gallery 首页

Expo Gallery

TypeScript · Expo SDK 58 · Expo Router · 22 个演示

Expo 常用模块逐个演示:expo-camera、expo-image、expo-sqlite、传感器、定位、触感反馈、SF Symbols、Liquid Glass 等。

在 GitHub 查看源码 → Expo 编译步骤 →

Expo Gallery 首页
Expo Gallery 演示页面

Kotlin Multiplatform Gallery

Kotlin · Compose Multiplatform · Material 3 · 21 个演示

整个界面都是共享的 Kotlin 代码:Material 3 组件、懒加载列表、Pager、动画、Canvas、手势、Compose Resources、expect / actual 调用 iOS API、Compose 里嵌入 MapKit 与 UIKit 视图、Ktor 网络请求和协程。

在 GitHub 查看源码 → Kotlin Multiplatform 编译步骤 →

Kotlin Multiplatform Gallery 首页
Kotlin Multiplatform Gallery 演示页面

Unity Gallery

C# · Unity 6 · 10 个演示

Unity 6 移动端示例:uGUI、3D 与 2D 物理、粒子系统、PBR 材质、程序化网格、触摸与传感器、音频合成,导出 iOS 工程后用 KXBuild 编译。

在 GitHub 查看源码 → Unity3D 编译步骤 →

Unity Gallery 首页
Unity Gallery 演示页面

Godot Gallery

GDScript · Godot 4 · 10 个演示

Godot 4 移动端示例:UI 控件、补间动画、粒子、2D 与 3D 物理、2D 光照、着色器、PBR 材质、触摸与传感器、音频合成,导出 iOS 后用 KXBuild 编译。

在 GitHub 查看源码 → Godot 编译步骤 →

Godot Gallery 首页
Godot Gallery 演示页面

从模板开始新项目

想自己新建一个 App,可以直接用 KXBuild 的项目模板:SwiftUI、UIKit、WKWebView、Flutter、React Native、Expo,以及多种 App 扩展(小组件、实时活动、App Clip、分享扩展等)。

查看项目模板 →