Media Preview content scanning (#5851)

* implemented checkSourceSafetyIfNeeded in the timeline media preview

* added a subtitle to the spinner when scanning and an animated drag gesture for the error and loading states

* pr suggestions

* pr suggestions part 2
This commit is contained in:
Mauro
2026-07-09 18:46:14 +02:00
committed by GitHub
parent ee89f8846f
commit 6bd8423675
15 changed files with 323 additions and 60 deletions
@@ -1355,6 +1355,13 @@ extension PreviewTests {
}
}
@Test
func timelineMediaContentScanningFailureView() async throws {
for (index, preview) in TimelineMediaContentScanningFailureView_Previews._allPreviews.enumerated() {
try await assertSnapshots(matching: preview, step: index)
}
}
@Test
func timelineMediaPreviewDetailsView() async throws {
for (index, preview) in TimelineMediaPreviewDetailsView_Previews._allPreviews.enumerated() {
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf1b86e4edbfa566a23b703948d4cc9f4b75212ac624497a9d9a0ea079db25ee
size 92105
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a45537628abb7586308d35394101a45b03eee87acd22578f64112c009ebcecbd
size 99384
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39074add3578cffa3db6b8afaee1441af54e925bf3f4cc759da6a7cf0fd25d26
size 49471
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1fc140f356f21709f4d19d78a324fdf77e89e805e38e4f477cba5e9f228b4aa5
size 59340