diff options
| author | Fuwn <[email protected]> | 2025-08-28 15:23:28 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-08-28 15:23:28 -0700 |
| commit | d7af80d2d1edcc45c043bb237c098c4cb0c026fa (patch) | |
| tree | c9775296945ce4b38e611d59e586000675f3d44c /Sora/Views/Post/Details | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-d7af80d2d1edcc45c043bb237c098c4cb0c026fa.tar.xz sora-testing-d7af80d2d1edcc45c043bb237c098c4cb0c026fa.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Details')
| -rw-r--r-- | Sora/Views/Post/Details/PostDetailsView.swift | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Sora/Views/Post/Details/PostDetailsView.swift b/Sora/Views/Post/Details/PostDetailsView.swift index 8051cf2..aa4c3cd 100644 --- a/Sora/Views/Post/Details/PostDetailsView.swift +++ b/Sora/Views/Post/Details/PostDetailsView.swift @@ -7,6 +7,7 @@ struct PostDetailsView: View { @Binding var navigationPath: NavigationPath @State private var loadingStage: BooruPostLoadingState = .loadingPreview @State private var isTagsSheetPresented = false + // swiftlint:disable:next discouraged_optional_collection let posts: [BooruPost]? private var imageURL: URL? { @@ -22,7 +23,12 @@ struct PostDetailsView: View { } } - init(post: BooruPost, navigationPath: Binding<NavigationPath>, posts: [BooruPost]? = nil) { + init( + post: BooruPost, + navigationPath: Binding<NavigationPath>, + // swiftlint:disable:next discouraged_optional_collection + posts: [BooruPost]? = nil + ) { self.post = post self._navigationPath = navigationPath self.posts = posts |