Skip to content

Commit

Permalink
Automated dotnet-format update (#973)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored May 7, 2021
1 parent d547fca commit c4deba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Core/src/Platform/iOS/ColorExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using CoreGraphics;
using Microsoft.Maui.Graphics;
using System;
using UIKit;
using UIColor = UIKit.UIColor;

Expand Down
6 changes: 3 additions & 3 deletions src/Core/src/Platform/iOS/LayoutView.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using CoreGraphics;
using ObjCRuntime;
using Microsoft.Maui.Graphics;
using ObjCRuntime;
using UIKit;

namespace Microsoft.Maui
Expand Down Expand Up @@ -30,7 +30,7 @@ public override void LayoutSubviews()
base.LayoutSubviews();

var bounds = Frame.ToRectangle();
if(View is ISafeAreaView sav && !sav.IgnoreSafeArea && RespondsToSafeArea())
if (View is ISafeAreaView sav && !sav.IgnoreSafeArea && RespondsToSafeArea())
{
var safe = SafeAreaInsets;
bounds.X += safe.Left;
Expand All @@ -47,7 +47,7 @@ bool RespondsToSafeArea()
{
if (respondsToSafeArea.HasValue)
return respondsToSafeArea.Value;
return (bool) (respondsToSafeArea = this.RespondsToSelector(new Selector("safeAreaInsets")));
return (bool)(respondsToSafeArea = this.RespondsToSelector(new Selector("safeAreaInsets")));
}

internal Func<double, double, Size>? CrossPlatformMeasure { get; set; }
Expand Down

0 comments on commit c4deba3

Please sign in to comment.