Organize things
This commit is contained in:
parent
67e362d6da
commit
ae226508b0
@ -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()
|
|
||||||
//}
|
|
@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user