tag refetch methods with source identifiers

This commit is contained in:
John Estropia
2021-09-15 19:38:59 +09:00
parent 4ddfa95140
commit a1a04aaf8a
4 changed files with 224 additions and 46 deletions

View File

@@ -65,7 +65,8 @@ extension Modern {
sectionIndexTransformer: { $0?.first?.uppercased() }
)
.where(self.filter.whereClause())
.orderBy(.ascending(\.$hue))
.orderBy(.ascending(\.$hue)),
sourceIdentifier: TransactionSource.refetch
)
}
}
@@ -79,6 +80,7 @@ extension Modern {
case delete
case shuffle
case clear
case refetch
}
}
}

View File

@@ -47,7 +47,8 @@ extension Modern.ColorsDemo.UIKit {
.clear:
dataSource.apply(listPublisher.snapshot, animatingDifferences: true)
case nil:
case nil,
.refetch:
dataSource.apply(listPublisher.snapshot, animatingDifferences: false)
}
}