Skip to content

Commit

Permalink
Commit forgotten indentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceylo committed Jan 23, 2023
1 parent 243017c commit 0e47f23
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions FurAffinity/Submissions/SubmissionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ struct SubmissionView: View {
}

func loadingSucceededView(_ submission: FASubmission) -> some View {
ScrollView {
VStack(alignment: .leading, spacing: 10) {
header(submission: preview)
ScrollView {
VStack(alignment: .leading, spacing: 10) {
header(submission: preview)
SubmissionMainImage(
widthOnHeightRatio: preview.thumbnailWidthOnHeightRatio,
fullResolutionImageUrl: submission.fullResolutionImageUrl,
Expand All @@ -50,24 +50,24 @@ struct SubmissionView: View {

SubmissionControlsView(
submissionUrl: submission.url,
fullResolutionImage: fullResolutionCGImage,
isFavorite: submission.isFavorite,
favoriteAction: {
Task {
self.submission = try await model.toggleFavorite(for: submission)
}
fullResolutionImage: fullResolutionCGImage,
isFavorite: submission.isFavorite,
favoriteAction: {
Task {
self.submission = try await model.toggleFavorite(for: submission)
}
}, replyAction: {
replySession = .init(
submission: submission,
parentCid: nil
)
}
)
if let description = description {
TextView(text: description)
}

if let description = description {
TextView(text: description)
}

SubmissionCommentsView(
comments: submission.comments,
replyAction: { cid in
Expand All @@ -77,28 +77,28 @@ struct SubmissionView: View {
)
}
)
}
.padding(10)
}
.refreshable {
Task {
await loadSubmission()
}
}
}
.padding(10)
}
.refreshable {
Task {
await loadSubmission()
}
}
.sheet(isPresented: showCommentEditor) {
commentEditor
}
}

private func loadSubmission() async {
submission = await submissionProvider()
if let submission = submission {
description = AttributedString(FAHTML: submission.htmlDescription)
submissionLoadingFailed = false
} else {
submissionLoadingFailed = true
}
}
}
}

var body: some View {
ZStack {
Expand Down

0 comments on commit 0e47f23

Please sign in to comment.