Hi Everyone!
I am new in swift programming. For a project I have to create a view in a swift playground. I just started when I hit a wall. When I use this code
import SwiftUI
import PlaygroundSupport
struct ProgressView: View {
var body: some View
Circle()
.stroke(lineWidth: 40)
.foregroundColor(.blue)
}
}
PlaygroundPage.current.setLiveView(ProgressView())
It just creates a tiny square at the top. Please guide me why this is not working and what should I do to fix it. Please reply ASAP.
I am new in swift programming. For a project I have to create a view in a swift playground. I just started when I hit a wall. When I use this code
import SwiftUI
import PlaygroundSupport
struct ProgressView: View {
var body: some View
Circle()
.stroke(lineWidth: 40)
.foregroundColor(.blue)
}
}
PlaygroundPage.current.setLiveView(ProgressView())
It just creates a tiny square at the top. Please guide me why this is not working and what should I do to fix it. Please reply ASAP.