swift ui 'CALayer position contains NaN: [nan nan]. Layer:

原因 画像描画系のエラー

対策 Button等の frame を洗い出してみる

minWidthになっていた

    }){
                Text("カメラを起動する")

//ここがminWidthになっていた
                    .frame(maxWidth: .infinity)
                    .frame(height: 50)
                    .multilineTextAlignment(.center)
                    .background(Color.blue)
                    .foregroundColor(Color.white)
            }
            .padding()