Not working on iPad

Hi,

The code below from the demo works on the MAC but not on the iPad, it Aborts on the Circle() line, if I remove the newly added Text command the code run's again. What am I doing wrong?

import SwiftUI
import PlaygroundSupport

struct ProgressView: View {
   
  var body: some View {
    ZStack {
        Circle()
          .stroke(lineWidth: 40)
          .foregroundColor(.blue)
      Text("25%")
    }
  }
}
PlaygroundPage.current.setLiveView(ProgressView()
  .padding(150))

Hi, when you say it aborts on the line of the Circle view, what does the log say? Could you post the log message when your app terminates?

Take care, David

Not working on iPad
 
 
Q