10 |
第1步:如下图所示,点击: Create a new Xcode Project

第2步:点击 Create a new Xcode Project 后,出现如下界面,选择 App 或其它Application类型,然后点击底部按钮 Next

第3步:如下图,填写: Product Name、Team、Organization Identifier。Interface和Language等其它项默认即可。填写后,点击底部按钮 Next

项目创建后,Xcode显示界面如下:

此时,将iPhone设备,连接到电脑上,然后按下快捷键Command+R,即可在手机预览。
11 |
12 |
13 |
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/XcodeInstall.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
Xcode 是运行在操作系统MacOS X上的集成开发工具。Xcode是开发 macOS 和 iOS 应用程序的最快捷的方式。
目前2022年9月,Xcode最新版本是 14.0。
在 Mac 电脑上,打开 App Store.app,搜索Xcode,点击 获取 按钮。
如下图所示:

Xcode软件体积很大,安装速度取决于您的网络。
安装完成后,在电脑上找到Xcode,点击启动。

11 |
12 |
13 |
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/introduce.md:
--------------------------------------------------------------------------------
1 |
2 | 2022年8月初的时候,想做一款iOS 记账类的App。在此之前,未接触过iOS开发。
3 |
4 | 通过网络搜索,了解到Swift和SwiftUI。在短暂的调研后,投入时间开始学习,每天学习2~3小时,结果是惊喜的。
5 |
6 | 学习SwiftUI之时,随着时间推移,积累的代码,发现可以直接转换为一个Swift学习App。
7 |
8 | 所以,便有了它。
9 |
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/static/create_project_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wan-dl/swift-swiftui-example/65e9fc78e37488bd7b545486bc06ebcf1090416b/hello/Resouces.bundle/App/firstSight/static/create_project_1.jpg
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/static/create_project_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wan-dl/swift-swiftui-example/65e9fc78e37488bd7b545486bc06ebcf1090416b/hello/Resouces.bundle/App/firstSight/static/create_project_2.jpg
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/static/create_project_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wan-dl/swift-swiftui-example/65e9fc78e37488bd7b545486bc06ebcf1090416b/hello/Resouces.bundle/App/firstSight/static/create_project_3.jpg
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/static/create_project_4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wan-dl/swift-swiftui-example/65e9fc78e37488bd7b545486bc06ebcf1090416b/hello/Resouces.bundle/App/firstSight/static/create_project_4.jpg
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/static/xcode_details.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wan-dl/swift-swiftui-example/65e9fc78e37488bd7b545486bc06ebcf1090416b/hello/Resouces.bundle/App/firstSight/static/xcode_details.jpg
--------------------------------------------------------------------------------
/hello/Resouces.bundle/App/firstSight/static/xcode_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wan-dl/swift-swiftui-example/65e9fc78e37488bd7b545486bc06ebcf1090416b/hello/Resouces.bundle/App/firstSight/static/xcode_icon.png
--------------------------------------------------------------------------------
/hello/Resouces.bundle/Root.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |