From 2c074d59490e0e2a8fdd0350fc4bd56026d2546d Mon Sep 17 00:00:00 2001 From: Jakub Szymczak <58909195+Szymek887@users.noreply.github.com> Date: Tue, 23 Aug 2022 14:02:54 +0200 Subject: [PATCH] Fix 'Expected type after 'as'' --- ios/Runner/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index 4579387..11c399c 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -9,7 +9,7 @@ import Flutter ) -> Bool { GeneratedPluginRegistrant.register(with: self) if #available(iOS 10.0, *) { - UNUserNotificationCenter.current().delegate = self as ? UNUserNotificationCenterDelegate + UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate } return super.application(application, didFinishLaunchingWithOptions: launchOptions) }