From 66e102a8d8cecad28638f51a004e1d73798e841f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 16 Jun 2025 03:49:07 -0700 Subject: feat: Development commit --- Sora/Views/Post/Grid/PostGridThumbnailPlaceholderView.swift | 8 ++++++-- 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: -- cgit v1.2.3