深度差异
:red_heart_selector: 支持我的应用 :red_heart_selector:
:red_heart_selector: :red_heart_selector: :smiling_face_with_halo: :smiling_face_with_heart-eyes: :sign_of_the_horns: :red_heart_selector: :red_heart_selector:
DeepDiff会在编辑步骤中告知两个集合之间的差异以及所做的更改。 它还支持 ,请参见
阅读更多
签出 Fast diffing并为UICollectionView键入安全的SwiftUI样式数据源
用法
基本的
diff的结果是一组更改,即[Change] 。 Change可以是
.insert :该项目已插入索引
.delete :该项目已从索引中删除
.replace :此索引处的项目被另一个项目替换
.move :同一项目已从该索引移至另一个索引
默认情况下,没有.move 。 但是由于.move只是.delete后跟相同项目的.inse
评论0
最新资源