diff --git a/Tests/SpeziViewsTests/SnapshotTests.swift b/Tests/SpeziViewsTests/SnapshotTests.swift index 61ad157..6221dfa 100644 --- a/Tests/SpeziViewsTests/SnapshotTests.swift +++ b/Tests/SpeziViewsTests/SnapshotTests.swift @@ -204,4 +204,18 @@ final class SnapshotTests: XCTestCase { assertSnapshot(of: listHeader1, as: .image(layout: .device(config: .iPhone13Pro)), named: "list-header") #endif } + + @MainActor + func testSkeletonLoading() { + let view = + RoundedRectangle(cornerRadius: 10) + .frame(height: 100) + .skeletonLoading(replicationCount: 5, repeatInterval: 1.5, spacing: 16) + .padding() + +#if os(iOS) + assertSnapshot(of: view, as: .image(layout: .device(config: .iPhone13Pro)), named: "skeleton-loading") +#endif + } + } diff --git a/Tests/SpeziViewsTests/__Snapshots__/SnapshotTests/testSkeletonLoading.skeleton-loading.png b/Tests/SpeziViewsTests/__Snapshots__/SnapshotTests/testSkeletonLoading.skeleton-loading.png new file mode 100644 index 0000000..e19defa Binary files /dev/null and b/Tests/SpeziViewsTests/__Snapshots__/SnapshotTests/testSkeletonLoading.skeleton-loading.png differ