i5ting / avp-dev

https://avp.dev
MIT License
0 stars 0 forks source link

swiftui教程 #2

Open i5ting opened 4 months ago

i5ting commented 4 months ago

https://www.youtube.com/playlist?list=PLXM8k1EWy5khONZ9M9ytK8mMrcEOXvGsE

i5ting commented 4 months ago

用 SwiftUI 来开发 iOS App,SwiftUI 非常容易上手,如果没有跨平台需求的话,个人是蛮推荐的。

分享一些 SwiftUI 的入门学习材料。

1、首先大致了解 Swift 语言。大致了解后就可以看 SwiftUI 的教程了,这样学起来有反馈,也可以练习,不枯燥。

https://gitbook.swiftgg.team/swift/huan-ying-shi-yong-swift/03_a_swift_tour

2、SwiftUI 官方教程。快速了解基本的导航、布局、处理用户输入、数据绑定等概念,跟着教程做完,很容易建立信心。

https://developer.apple.com/tutorials/swiftui

3、App Dev 官方教程。跟上一步的教程类似,但稍微复杂一些,有了前面的基础,可以跟着学或者直接下载代码读懂即可。

https://developer.apple.com/tutorials/app-dev-training

4、SwiftUI 官方文档中的示例 App。官网文档更适合作为开发手册,这里又有 3 个不错的示例 App,而且都是像样的小型 App 了。

https://developer.apple.com/documentation/swiftui/backyard-birds-sample

5、几个不错的适合用于学习的开源 App。通过示例 App 来学习是非常不错的,那就再看一些实际的 App 代码吧。

动森手册:https://github.com/Dimillian/ACHNBrowserUI SwiftUI 系统组件和交互 demo:https://github.com/jordansinger/SwiftUI-Kit?tab=readme-ov-file (interactful 这个 app,也可以速查系统组件和用法) open-swiftui-animations:https://github.com/amosgyamfi/open-swiftui-animations 法律手册:https://github.com/RanKKI/LawRefBook ) (本想列举几个,但是好像太多了,写不下,感兴趣的看我 github stars 吧 😇。https://github.com/lcomplete?tab=stars

i5ting commented 2 months ago

https://www.youtube.com/@StewartLynch