how to convert a 3d imageview to a 2d image

I have used the rotation3dEffect to rotate an image. Is there a way to turn the 3d rendered image into a 2d image with the effect still applied.
Code Block
Image(uiImage: toBeEdited)
            .resizable()
            .aspectRatio(contentMode: .fit)
            .opacity(opa)
            .allowsHitTesting(false)
            .background(RectGetter(rect: $rect))
            .rotation3DEffect(
              .degrees(degY),
              axis: (x: 0.0, y: 0.1, z : 0.0)
            )
            .rotation3DEffect(
              .degrees(degX),
              axis: (x: 0.1, y: 0.0, z : 0.0)
            )

I'd like to turn this into a 2d UIImage()
how to convert a 3d imageview to a 2d image
 
 
Q