There is a small mistake in my source code and I can't edit it.
It should be like this instead:
var body: some View {
SceneView(
scene: simpleScene,
options: [.allowsCameraControl, .autoenablesDefaultLighting]
)
.frame(maxWidth: .infinity, maxHeight: 312.6)
}