SwiftUI入门 - 代码仓库地址发布

置顶

菜鸟入门,各位大佬轻喷,如有谬误之处欢迎讨论建议,也欢迎各位道友与我同行

“不积跬步,无以至千里;不积小流,无以成江海”

说明

近期有朋友问我能否分享源代码,是我疏忽了,所以专门花了点时间做了下整理,并且把源码放到了gitee上,特此公布

为什么不是github?感觉好像gitee速度还是要稍微快一点😂如果以后发到github,我会同步到这篇文章。

地址如下:

https://gitee.com/snail_7/swiftui_helloworld

介绍

本系列(SwiftUI入门)是有感于手里的 Apple 全家桶,却从未深入了解过 Apple 系列的原生开发,一直埋头于 Web系前后端的研究,深感浪费,于是开始从0开始学习 SwiftUI 开发。

由于我有 web开发的基础,所以并没有在网上去找从0开始的教程,而是以类比我已有知识体系的方式,一步一步查找资料学习,一切以实现为主,其中或许有许多错漏的地方,但初学入门阶段均忽略这些问题。延续兴趣为主,后续的积累阶段再重新补足理论知识以及入门时错漏的地方。

当然,没有 web基础的同学忽略我在文中提到的 web技术对比思考即可。

整个系列以实现一个完整的 TodoList 应用为例。

如果有大佬发现我过程中的错漏,欢迎提出,感激不尽。

如果有同入门的同学,欢迎道友同行探讨。

文章目录

SwiftUI入门专栏

  1. SwiftUI入门 - 1. 创建项目,xcode界面
  2. SwiftUI入门 - 2. 状态变量定义,数据绑定
  3. SwiftUI入门 - 3. 提示弹窗,TextField自动聚焦
  4. SwiftUI入门 - 4. 跳转页面、导航栏
  5. SwiftUI入门 - 5.本地缓存-@AppStorage
  6. SwiftUI入门 - 6.Binding响应@AppStorage-退出登陆
  7. SwiftUI入门 - 7.todo页面-List循环数组
  8. SwiftUI入门 - 8.TODO 状态切换 - 数据抽象
  9. SwiftUI入门 - 9.List分组-NavigationView的基本使用
  10. SwiftUI入门 - 10.SwiftUI 父子组件通信-封装、传参、@EnvironmentObject
  11. SwiftUI入门 - 11.List 分组导致的删除bug修复,以及调试方法
  12. SwiftUI入门 - 12.todo详情表单、自定义事件
  13. SwiftUI入门 - 13.TodoLists数据的本地持久化
  14. SwiftUI入门 - 14.第三方库与Popup引入
  15. SwiftUI入门 - 15.Toast的封装、Extension与ViewModifier的使用
  16. SwiftUI入门 - 16.请求后端接口、Just的基本使用

。。。未完待续。。。

结尾

欢迎关注【思跃喵】,一起探讨。

SwiftUI is a new framework introduced by Apple in 2019 for building user interfaces on all Apple platforms (iOS, iPadOS, macOS, watchOS, and tvOS). It provides a new way of declaratively building user interfaces using Swift code. Objective-C, on the other hand, is an object-oriented programming language that has been widely used for building Mac and iOS applications. It has been around for much longer than SwiftUI, and has a large and established developer community. Here are some key differences between the two: 1. Syntax: SwiftUI has a simpler and more intuitive syntax compared to Objective-C, which can be more verbose and difficult to read. 2. Declarative vs Imperative: SwiftUI is a declarative framework, which means you describe what your user interface should look like, and the framework takes care of rendering it on the screen. Objective-C, on the other hand, is an imperative language, which requires you to write code to manipulate the user interface elements directly. 3. Interoperability: SwiftUI and Objective-C can coexist in the same project, and it is possible to use SwiftUI components in Objective-C code. However, the reverse is not true, as Objective-C code cannot be used in SwiftUI. 4. Learning Curve: SwiftUI is generally considered easier to learn for new developers, whereas Objective-C has a steeper learning curve. Ultimately, the choice between SwiftUI and Objective-C depends on the specific needs and preferences of each developer and the project they are working on. Both frameworks have their strengths and weaknesses, and both can be used to build high-quality and performant applications.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

我码玄黄

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值