I am a developer from Zagreb, Croatia working at Ericsson on wide range of projects, from projects that help customers monitor their Ericsson Radio Systems to projects that help disabled people operate their smartphones in day-to-day life.
I am available for general questions about software development world, coaching and mentoring as well as occasional freelance work.
Hi Peter, I'm glad you found this article useful. :) Regarding your error, Live Preview is good when you try to test something in your current view, i.e. make sure that animations are correct, but end-to-end test should be done in an emulator. Especially in this case since LoginViewModel is EnvironmentObject initialized in DemoApp on ContentView() but that piece of code was never run in Live Preview. Try running your app in emulator or on physical device and let me know if your error is still happening.