Lag when is used clipShape and Circle on SwiftUI

Hello,


I am facing a problem with SwiftUI clipShape.


When i use clipShape with Circle, my iPad (iPad air 2) is lagging + black screen but with Capsule i havent this lag.


This GIF present you this problem : clipShape with circle


And this GIF present you clipShape with capsule where we dont see any problem : clipShape with capsule


This the code i used to test this :


import SwiftUI

struct ContentView: View {

  var body: some View {
  VStack {
  ForEach(1 ..< 5) { i in
  HStack {
  ForEach(1 ..< 15) { t in
  Image(systemName: "plus")
  .padding(10)
  .background(Color.gray)
  .clipShape(Circle())
  }
  }
  }
  }
  }
}

struct ContentView_Previews: PreviewProvider {
  static var previews: some View {
  ContentView()
  }
}


Thank you very much

Lag when is used clipShape and Circle on SwiftUI
 
 
Q