Hi,
Anyone facing problem with progressview not showing in ios 14. I have used Xcode 12 beta 6 and 7 to create new advanced widget and i wanted to show progressview but a yellow image with red cross is being shown. Tried this
VStack(alignment: .leading, spacing: nil, content: {
ProgressView()
}
OR
VStack(alignment: .leading, spacing: nil, content: {
ProgressView("Downloading", 50, 100)
}
This shows only "Downloading" and not horizontal bar.
Am i missing something? Watched mainy videos where it was working and they were using xcode 12 beta 2 or 3
Anyone facing problem with progressview not showing in ios 14. I have used Xcode 12 beta 6 and 7 to create new advanced widget and i wanted to show progressview but a yellow image with red cross is being shown. Tried this
VStack(alignment: .leading, spacing: nil, content: {
ProgressView()
}
OR
VStack(alignment: .leading, spacing: nil, content: {
ProgressView("Downloading", 50, 100)
}
This shows only "Downloading" and not horizontal bar.
Am i missing something? Watched mainy videos where it was working and they were using xcode 12 beta 2 or 3
Forgot to mention in question it was not working in widgetKit.
Found this https://stackoverflow.com/questions/62835019/progressview-in-ios-14-widget-causing-fatal-error
Solution
So made a CustomProgressView for my problem
struct CustomProgressView: View {
var body: some View {
ZStack {
ZStack {
}
.frame(width: 300, height: 6, alignment: .center)
.background(RoundedRectangle(cornerRadius: 3)
.fill(Color.blue))
ZStack(alignment: Alignment(horizontal: .leading, vertical: .center), content: {
Found this https://stackoverflow.com/questions/62835019/progressview-in-ios-14-widget-causing-fatal-error
Solution
So made a CustomProgressView for my problem
struct CustomProgressView: View {
var body: some View {
ZStack {
ZStack {
}
.frame(width: 300, height: 6, alignment: .center)
.background(RoundedRectangle(cornerRadius: 3)
.fill(Color.blue))
ZStack(alignment: Alignment(horizontal: .leading, vertical: .center), content: {
Code Block }) .frame(width: 100, height: 6, alignment: .center) .background(RoundedRectangle(cornerRadius: 3) .fill(Color.green)) } }
}