At least with me this snippet did not work because authStatus is an enum: after changing
restricted in .restricted;
denied in .denied;
notDetermined in .notDetermined and
authorized in .authorized
it worked for me.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: