06 2022 档案
摘要:问题重现 @State不生效 struct ProductDetailView: View { @State private var product: ProductModel init(refId: String) { let mProduct = AppLocalAPI.findProduct(
阅读全文
摘要:方式一 (使用extension为结构体扩展目标类型) https://ootips.org/yonat/swiftui-binding-type-conversion/ struct MyView: View { @State private var currentStep: Double = 0
阅读全文
摘要:因为 .gitignore 只能忽略那些原来没有被提交推送过的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。 需先使用 git rm --cached删除文件的追踪 比如,从版本管理中移除名为“Context/EFContext.cs”的文件: git rm --ca
阅读全文