Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 1, 2023
1 parent c1ae480 commit 57c6226
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/Compatibility/Core/src/iOS/DragAndDropDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Maui.Controls.Compatibility.Platform.iOS
[SupportedOSPlatform("ios11.0")]
internal class DragAndDropDelegate : NSObject, IUIDragInteractionDelegate, IUIDropInteractionDelegate
{
#region UIDragInteractionDelegate
#region UIDragInteractionDelegate


[Export("dragInteraction:session:willEndWithOperation:")]
Expand All @@ -39,7 +39,7 @@ public UIDragItem[] GetItemsForBeginningSession(UIDragInteraction interaction, I

return new UIDragItem[0];
}
#endregion
#endregion

[Export("dropInteraction:canHandleSession:")]
[Preserve(Conditional = true)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void UpdatePickerBindingContext()
public class PickerData
{
public string Name { get; set; }

public ObservableCollection<PickerData> PickerItems { get; set; }
}
}
4 changes: 2 additions & 2 deletions src/Controls/src/Core/Platform/iOS/DragAndDropDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public DragAndDropDelegate(IPlatformViewHandler viewHandler)
_viewHandler = viewHandler;
}

#region UIDragInteractionDelegate
#region UIDragInteractionDelegate
[Export("dragInteraction:session:willEndWithOperation:")]
[Preserve(Conditional = true)]
public void SessionWillEnd(UIDragInteraction interaction, IUIDragSession session, UIDropOperation operation)
Expand All @@ -40,7 +40,7 @@ public UIDragItem[] GetItemsForBeginningSession(UIDragInteraction interaction, I
{
return HandleDragStarting((View)_viewHandler.VirtualView, _viewHandler);
}
#endregion
#endregion

[Export("dropInteraction:canHandleSession:")]
[Preserve(Conditional = true)]
Expand Down
6 changes: 3 additions & 3 deletions src/Core/src/Layouts/GridLayoutManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void InitializeCells()
ResolveStarRows(_gridHeightConstraint);
}
}

public Rect GetCellBoundsFor(IView view, double xOffset, double yOffset)
{
var firstColumn = _grid.GetColumn(view).Clamp(0, _columns.Length - 1);
Expand Down Expand Up @@ -623,7 +623,7 @@ void ResolveStarColumns(double widthConstraint, bool decompressing = false)
if (decompressing)
{
// This pass is for arrangement, we don't need to update the measure values
return;
return;
}

foreach (var cell in _cells)
Expand Down Expand Up @@ -933,7 +933,7 @@ bool IsStarHeightPrecomputable()
return !AnyAuto(_rows);
}

void UpdateKnownMeasureWidth(Cell cell)
void UpdateKnownMeasureWidth(Cell cell)
{
double measureWidth = 0;
for (int column = cell.Column; column < cell.Column + cell.ColumnSpan; column++)
Expand Down
4 changes: 2 additions & 2 deletions src/Core/src/Platform/iOS/WebViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public static void UpdateUserAgent(this WKWebView platformWebView, IWebView webV
if (webView.UserAgent != null)
platformWebView.CustomUserAgent = webView.UserAgent;
else
webView.UserAgent =
platformWebView.CustomUserAgent ??
webView.UserAgent =
platformWebView.CustomUserAgent ??
platformWebView.ValueForKey(new Foundation.NSString("userAgent"))?.ToString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GridLayoutManagerBenchMarker
{
IGridLayout _gridLayout;
GridLayoutManager _manager;

void BasicSetup()
{
_gridLayout = Substitute.For<IGridLayout>();
Expand All @@ -34,7 +34,7 @@ void BasicSetup()
}

[GlobalSetup(Target = nameof(AllAbsolute))]
public void AbsoluteSetup()
public void AbsoluteSetup()
{
BasicSetup();

Expand All @@ -60,7 +60,7 @@ public void AllAutoSetup()
SubColDefs(_gridLayout, CreateTestColumns("auto, auto"));
}

static IView CreateTestView()
static IView CreateTestView()
{
var viewSize = new Size(100, 100);

Expand Down Expand Up @@ -141,7 +141,7 @@ static List<IGridColumnDefinition> CreateTestColumnsFromStrings(params string[]
return colDefs;
}

static List<IGridRowDefinition> CreateTestRows(string rows)
static List<IGridRowDefinition> CreateTestRows(string rows)
{
return CreateTestRowsFromStrings(rows.Split(","));
}
Expand Down Expand Up @@ -186,7 +186,7 @@ static GridLength GridLengthFromString(string gridLength)
}

[Benchmark]
public void AllAbsolute()
public void AllAbsolute()
{
var result = _manager.Measure(500, 500);
_manager.ArrangeChildren(new Rect(Point.Zero, result));
Expand Down

0 comments on commit 57c6226

Please sign in to comment.