diff options
| author | Fuwn <[email protected]> | 2025-06-16 03:49:07 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-16 03:49:07 -0700 |
| commit | 66e102a8d8cecad28638f51a004e1d73798e841f (patch) | |
| tree | 972a86a640f4c9cb5ad03aef0bb26d00c1ad1000 | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-66e102a8d8cecad28638f51a004e1d73798e841f.tar.xz sora-testing-66e102a8d8cecad28638f51a004e1d73798e841f.zip | |
feat: Development commit
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridThumbnailPlaceholderView.swift | 8 | ||||
| -rw-r--r-- | project.yml | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Sora/Views/Post/Grid/PostGridThumbnailPlaceholderView.swift b/Sora/Views/Post/Grid/PostGridThumbnailPlaceholderView.swift index 7a101ad..55f1fa9 100644 --- a/Sora/Views/Post/Grid/PostGridThumbnailPlaceholderView.swift +++ b/Sora/Views/Post/Grid/PostGridThumbnailPlaceholderView.swift @@ -1,10 +1,14 @@ +import SkeletonUI import SwiftUI struct PostGridThumbnailPlaceholderView: View { var body: some View { RoundedRectangle(cornerRadius: 8) - .fill(Color(.systemGray5)) + .skeleton(with: true, shape: .rounded(RoundedType.radius(8))) .aspectRatio(1, contentMode: .fit) - .redacted(reason: .placeholder) } } + +#Preview { + PostGridThumbnailPlaceholderView() +} diff --git a/project.yml b/project.yml index c7ab66d..856cabd 100644 --- a/project.yml +++ b/project.yml @@ -27,6 +27,9 @@ packages: WaterfallGrid: url: https://github.com/paololeonardi/WaterfallGrid majorVersion: 1.1.0 + SkeletonUI: + url: https://github.com/CSolanaM/SkeletonUI + branch: master targets: Sora: type: application @@ -75,6 +78,7 @@ targets: - package: Alamofire - package: NetworkImage - package: WaterfallGrid + - package: SkeletonUI info: path: Sora/Resources/Info.generated.plist properties: |