diff options
| author | Fuwn <[email protected]> | 2026-02-18 10:46:38 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-18 10:46:38 -0800 |
| commit | cd62bb58e1f32ddcccaac081dd9aec12c3edc398 (patch) | |
| tree | c7006dd094ed83fa84bafe48128129f016eccc89 /Sora/Views/Post/Grid/PostGridThumbnailView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-cd62bb58e1f32ddcccaac081dd9aec12c3edc398.tar.xz sora-testing-cd62bb58e1f32ddcccaac081dd9aec12c3edc398.zip | |
Fix SwiftLint violations
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridThumbnailView.swift')
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridThumbnailView.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sora/Views/Post/Grid/PostGridThumbnailView.swift b/Sora/Views/Post/Grid/PostGridThumbnailView.swift index 313704b..5316731 100644 --- a/Sora/Views/Post/Grid/PostGridThumbnailView.swift +++ b/Sora/Views/Post/Grid/PostGridThumbnailView.swift @@ -62,7 +62,7 @@ struct PostGridThumbnailView: View { if #available(iOS 18.0, macOS 15.0, *) { imageContent(image: image) .onScrollVisibilityChange { visible in - if posts.count > 4 && post == posts[posts.count - (posts.count / 4)], + if posts.count > 4, post == posts[posts.count - (posts.count / 4)], !endOfData, visible { Task(priority: .utility) { await onLoadNextPage() } |