diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fdbb159..62eb4d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,18 +26,18 @@ jobs: DIFF_BASE: ${{ github.base_ref }} Latest: name: Test Latest (iOS, macOS, tvOS, watchOS) - runs-on: macOS-12 + runs-on: macOS-13 env: - DEVELOPER_DIR: "/Applications/Xcode_14.1.app/Contents/Developer" + DEVELOPER_DIR: "/Applications/Xcode_15.1.app/Contents/Developer" timeout-minutes: 10 strategy: fail-fast: false matrix: include: - - destination: "OS=16.1,name=iPhone 14 Pro" + - destination: "OS=17.0,name=iPhone 14 Pro" name: "iOS" sdk: iphonesimulator - - destination: "OS=16.1,name=Apple TV" + - destination: "OS=17.2,name=Apple TV" name: "tvOS" sdk: appletvsimulator - destination: "OS=9.1,name=Apple Watch Series 8 (45mm)" @@ -59,11 +59,11 @@ jobs: discover-typos: name: Discover Typos - runs-on: macOS-12 + runs-on: macOS-13 env: - DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer + DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Discover typos run: | export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin" diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cccc02..adc7ce6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ Released on 2024-07-19. #### Updated - Update the masking logic - Updated in Pull Request [#7](https://github.com/space-code/skeleton-ui/pull/7). +- Update the snapshot tests + - Updated in Pull Request [#8](https://github.com/space-code/skeleton-ui/pull/8). ## [1.0.1](https://github.com/space-code/skeleton-ui/releases/tag/1.0.1) Released on 2024-01-14. diff --git a/Sources/SkeletonUI/Classes/Core/SkeletonConstants.swift b/Sources/SkeletonUI/Classes/Core/SkeletonConstants.swift index f34f27b..5e80a74 100644 --- a/Sources/SkeletonUI/Classes/Core/SkeletonConstants.swift +++ b/Sources/SkeletonUI/Classes/Core/SkeletonConstants.swift @@ -15,9 +15,9 @@ public enum SkeletonConstants { /// Default gradient for the skeleton view. public static let gradient: Gradient = .init( stops: [ - .init(color: .black.opacity(.opacity), location: 0.8), - .init(color: .black, location: 0.9), - .init(color: .black.opacity(.opacity), location: 1.0), + .init(color: .gray.opacity(.opacity), location: 0.8), + .init(color: .gray, location: 0.9), + .init(color: .gray.opacity(.opacity), location: 1.0), ] ) } diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-iphone.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-iphone.1.png index 40d19a6..1d48bac 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-iphone.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-iphone.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-tv.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-tv.1.png index 60b6beb..3e40eb6 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-tv.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesASingleView_whenViewHasCustomConfiguration-tv.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-iphone.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-iphone.1.png index b86a93c..877801d 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-iphone.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-iphone.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-tv.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-tv.1.png index b3647b1..8d9fc63 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-tv.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimatesMultiplesView_whenViewHasCustomLayout-tv.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenDeviceIsIpad.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenDeviceIsIpad.1.png index 76504ed..031b024 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenDeviceIsIpad.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenDeviceIsIpad.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-iphone.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-iphone.1.png index 9c4a4e2..156d716 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-iphone.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-iphone.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-tv.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-tv.1.png index 54adcb6..e0395e8 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-tv.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsAndAnimationMultiplesView_whenViewTypeIsPlain-tv.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-iphone.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-iphone.1.png index 36f47f6..e3d8eab 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-iphone.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-iphone.1.png differ diff --git a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-tv.1.png b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-tv.1.png index 27a4f0b..d605fee 100644 Binary files a/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-tv.1.png and b/Tests/SkeletonUITests/SnapshotTests/__Snapshots__/SkeletonUITests/test_thatSkeletonViewShowsViewContent_whenSkeletonIsDisabled-tv.1.png differ