diff --git a/templates/ios/src/app.swift b/templates/ios/src/app.swift index d92db0c..706f8d5 100644 --- a/templates/ios/src/app.swift +++ b/templates/ios/src/app.swift @@ -97,12 +97,12 @@ struct templateApp: App { var body: some Scene { WindowGroup { ContentView() - .onReceive(NotificationCenter.default.publisher(for: UIApplication.didEnterBackgroundNotification)) { _ in - audioPause() - } - .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in - audioResume() - } + .onReceive(NotificationCenter.default.publisher(for: UIApplication.didEnterBackgroundNotification)) { _ in + audioPause() + } + .onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in + audioResume() + } } } } diff --git a/templates/ios/src/index.html b/templates/ios/src/index.html index ce7e217..e7b0655 100644 --- a/templates/ios/src/index.html +++ b/templates/ios/src/index.html @@ -21,14 +21,15 @@ --> -
- -