From b24e1f9d40850414d0bbd1f80907e4b1492729c0 Mon Sep 17 00:00:00 2001 From: Vyrtsev Mikhail Date: Mon, 13 Jun 2022 03:04:06 +0300 Subject: [PATCH] Restore permission check --- MiddleMe/MiddleMeApp.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MiddleMe/MiddleMeApp.swift b/MiddleMe/MiddleMeApp.swift index da0704c..38f452d 100644 --- a/MiddleMe/MiddleMeApp.swift +++ b/MiddleMe/MiddleMeApp.swift @@ -32,7 +32,9 @@ struct MiddleMeApp: App { var body: some Scene { WindowGroup { - ContentView() + ContentView().onAppear{ + settings.checkAccess() + } .environmentObject(settings) .fixedSize() .preferredColorScheme(.dark)