From ae226508b0882b9fbbd69ab72f0f9c3991759b09 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 26 Feb 2025 15:24:30 -0500 Subject: [PATCH] Organize things --- .../AttachmentThumbnailView.swift | 0 .../ComposeUI/Views/PostProgressView.swift | 21 ------------------- .../ComposeUI/Views/WrappedProgressView.swift | 9 ++++++++ 3 files changed, 9 insertions(+), 21 deletions(-) rename Packages/ComposeUI/Sources/ComposeUI/Views/{ => Attachments}/AttachmentThumbnailView.swift (100%) delete mode 100644 Packages/ComposeUI/Sources/ComposeUI/Views/PostProgressView.swift diff --git a/Packages/ComposeUI/Sources/ComposeUI/Views/AttachmentThumbnailView.swift b/Packages/ComposeUI/Sources/ComposeUI/Views/Attachments/AttachmentThumbnailView.swift similarity index 100% rename from Packages/ComposeUI/Sources/ComposeUI/Views/AttachmentThumbnailView.swift rename to Packages/ComposeUI/Sources/ComposeUI/Views/Attachments/AttachmentThumbnailView.swift diff --git a/Packages/ComposeUI/Sources/ComposeUI/Views/PostProgressView.swift b/Packages/ComposeUI/Sources/ComposeUI/Views/PostProgressView.swift deleted file mode 100644 index 3a8eeeb7..00000000 --- a/Packages/ComposeUI/Sources/ComposeUI/Views/PostProgressView.swift +++ /dev/null @@ -1,21 +0,0 @@ -// -// PostProgressView.swift -// ComposeUI -// -// Created by Shadowfacts on 8/10/24. -// - -import SwiftUI - -struct PostProgressView: View { - @ObservedObject var poster: PostService - - var body: some View { - // can't use SwiftUI.ProgressView because there's no UIProgressView.Style.bar equivalent, see FB8587149 - WrappedProgressView(value: poster.currentStep, total: poster.totalSteps) - } -} - -//#Preview { -// PostProgressView() -//} diff --git a/Packages/ComposeUI/Sources/ComposeUI/Views/WrappedProgressView.swift b/Packages/ComposeUI/Sources/ComposeUI/Views/WrappedProgressView.swift index a6037682..b66cb3ea 100644 --- a/Packages/ComposeUI/Sources/ComposeUI/Views/WrappedProgressView.swift +++ b/Packages/ComposeUI/Sources/ComposeUI/Views/WrappedProgressView.swift @@ -27,3 +27,12 @@ struct WrappedProgressView: UIViewRepresentable { } } } + +struct PostProgressView: View { + @ObservedObject var poster: PostService + + var body: some View { + // can't use SwiftUI.ProgressView because there's no UIProgressView.Style.bar equivalent, see FB8587149 + WrappedProgressView(value: poster.currentStep, total: poster.totalSteps) + } +}