![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SwiftUI
nobug的然然
这个作者很懒,什么都没留下…
展开
-
【git笔记】常用的命令收录
最近频繁使用到git,但是以前没有系统学习过相关知识。本文收录一些本人在项目上频繁使用到的命令,予以记录。原创 2022-11-28 20:06:59 · 113 阅读 · 0 评论 -
【SwiftUI】深色模式适配
2.通过三元表达式获取目前系统的模式(深色、浅色),通过不同的模式选取返回不同的颜色。1.在header的struct View中引入EnvironmentObject。设备浅色模式时,用户名的color为蓝色,设备深色模式时,用户名的color为白色。原创 2022-11-28 19:46:01 · 868 阅读 · 0 评论 -
【SwiftUI学习笔记】 objectWillChange.send()手动触发视图view更新
在主视图view的refreshable闭包中调用viewmodel中定义的refreshData方法。在ViewModel的相关层里定义触发方法(这里以主视图下拉刷新后触发值更改)在viewModel层的相关类里定义变量。在主视图中实例化上述viewModel。原创 2022-11-28 19:33:53 · 688 阅读 · 0 评论 -
【SwiftUI学习笔记】@propertyWrapper、Bind<String>实战
【代码】【SwiftUI学习笔记】@propertyWrapper、Bind实战。原创 2022-11-28 19:06:57 · 629 阅读 · 0 评论 -
【SwiftUI学习笔记】Git Repository Creation FailedEnsure the author information supplied in Xcode ...
1.创建storyboard,点击Next后弹出错误。Git Repository Creation Failed Ensure the author information supplied in Xcode > Preferences is correct then create the git repository using Source Control > New Git Repository…原创 2022-11-28 18:31:27 · 2096 阅读 · 1 评论