diff --git a/src/Core/src/Core.csproj b/src/Core/src/Core.csproj index b37dfc2aee93..a030758dee7a 100644 --- a/src/Core/src/Core.csproj +++ b/src/Core/src/Core.csproj @@ -15,6 +15,7 @@ + diff --git a/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.cs b/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.cs index 3a119be2863d..71a8acb21a81 100644 --- a/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.cs +++ b/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using Foundation; using Microsoft.Extensions.DependencyInjection; using Microsoft.Maui.Hosting; @@ -149,6 +150,7 @@ public virtual void PerformFetch(UIApplication application, Action(del => del(application, completionHandler)); } + [UnconditionalSuppressMessage("Memory", "MA0002", Justification = "There can only be one MauiUIApplicationDelegate.")] public static MauiUIApplicationDelegate Current { get; private set; } = null!; [Export("window")] diff --git a/src/Core/src/Platform/iOS/WrapperView.cs b/src/Core/src/Platform/iOS/WrapperView.cs index f857557f48c7..a1e308605fe9 100644 --- a/src/Core/src/Platform/iOS/WrapperView.cs +++ b/src/Core/src/Platform/iOS/WrapperView.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using CoreAnimation; using CoreGraphics; using Microsoft.Maui.Graphics; @@ -12,6 +13,7 @@ public partial class WrapperView : UIView, IDisposable CAShapeLayer? _maskLayer; CAShapeLayer? _backgroundMaskLayer; CAShapeLayer? _shadowLayer; + [UnconditionalSuppressMessage("Memory", "MA0002", Justification = "_borderView is a SubView")] UIView? _borderView; public WrapperView()