Colors VS UIColor Color 使用SwiftUI声明这样一个变量会表达什么呢? 它可以指定颜色,...[作者空间]
动画实现 昨天讲了动画的理论知识,今天我们做一下动画的代码实现。先实现隐式动画 当两个卡片相匹配时,我们实现了另一...[作者空间]
今天要说三个内容:Property Observers、@State、Animation Property Obs...[作者空间]
画饼状图+使任意view卡片化 在此之前先修改一下属性的访问限制。属性的访问限制是根据项目如何使用数据确定的。 p...[作者空间]
实现grid布局,实现翻牌规则 之前我们卡片都在一行,在某个方向上浪费了很多空间。我们希望卡片分布在多行也就是网格...[作者空间]
实现响应式程序 用户交互的意图可以反馈到模型,模型的数据变化又能实时更新到视图上,是我们今天要实现的内容。 修改名...[作者空间]
第二天:使用MVVM重构代码 我们在使用swiftUI和swift时,大多数时候都是使用函数式编程。在传统的iOS...[作者空间]
使用Apple最新的Swift UI技术编写更好的app。 随着技术的不断进步,iOS的开发语言也在不断的进步。不...[作者空间]