Organize things

This commit is contained in:
Shadowfacts 2025-02-26 15:24:30 -05:00
parent 67e362d6da
commit ae226508b0
3 changed files with 9 additions and 21 deletions

View File

@ -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()
//}

View File

@ -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)
}
}