Skip to content

Commit 28ab935

Browse files
committed
improve consistency
1 parent b227197 commit 28ab935

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Cirrious.FluentLayout/AdvancedFluentLayoutExtensions.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ public static FluentLayout AtTopOfLayoutGuide(this UIView view, UILayoutGuide la
2626

2727
public static FluentLayout AtTopOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
2828
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
29-
? AtTopOfLayoutGuide(view, parentView.SafeAreaLayoutGuide, margin)
29+
? view.AtTopOfLayoutGuide(parentView.SafeAreaLayoutGuide, margin)
3030
: view.AtTopOf(parentView, margin);
3131

3232
public static FluentLayout AtTopOfMargins(this UIView view, UIView parentView, nfloat? margin = null) =>
3333
UIDevice.CurrentDevice.CheckSystemVersion(9, 0)
34-
? AtTopOfLayoutGuide(view, parentView.LayoutMarginsGuide, margin)
34+
? view.AtTopOfLayoutGuide(parentView.LayoutMarginsGuide, margin)
3535
: view.AtTopOf(parentView, margin);
3636

3737
public static FluentLayout AtTopOfReadableContent(this UIView view, UIView parentView, nfloat? margin = null) =>
3838
UIDevice.CurrentDevice.CheckSystemVersion(9, 0)
39-
? AtTopOfLayoutGuide(view, parentView.ReadableContentGuide, margin)
39+
? view.AtTopOfLayoutGuide(parentView.ReadableContentGuide, margin)
4040
: view.AtTopOf(parentView, margin);
4141

4242
public static FluentLayout AtLeftOf(this UIView view, UIView parentView, nfloat? margin = null) =>
@@ -47,7 +47,7 @@ public static FluentLayout AtLeftOfLayoutGuide(this UIView view, UILayoutGuide l
4747

4848
public static FluentLayout AtLeftOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
4949
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
50-
? AtLeftOfLayoutGuide(view, parentView.SafeAreaLayoutGuide, margin)
50+
? view.AtLeftOfLayoutGuide(parentView.SafeAreaLayoutGuide, margin)
5151
: view.AtLeftOf(parentView, margin);
5252

5353
public static FluentLayout AtLeftOfMargins(this UIView view, UIView parentView, nfloat? margin = null) =>
@@ -57,7 +57,7 @@ public static FluentLayout AtLeftOfMargins(this UIView view, UIView parentView,
5757

5858
public static FluentLayout AtLeftOfReadableContent(this UIView view, UIView parentView, nfloat? margin = null) =>
5959
UIDevice.CurrentDevice.CheckSystemVersion(9, 0)
60-
? AtLeftOfLayoutGuide(view, parentView.ReadableContentGuide, margin)
60+
? view.AtLeftOfLayoutGuide(parentView.ReadableContentGuide, margin)
6161
: view.AtLeftOf(parentView, margin);
6262

6363
public static FluentLayout AtRightOf(this UIView view, UIView parentView, nfloat? margin = null) =>
@@ -68,17 +68,17 @@ public static FluentLayout AtRightOfLayoutGuide(this UIView view, UILayoutGuide
6868

6969
public static FluentLayout AtRightOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
7070
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
71-
? AtRightOfLayoutGuide(view, parentView.SafeAreaLayoutGuide, margin)
71+
? view.AtRightOfLayoutGuide(parentView.SafeAreaLayoutGuide, margin)
7272
: view.AtRightOf(parentView, margin);
7373

7474
public static FluentLayout AtRightOfMargins(this UIView view, UIView parentView, nfloat? margin = null) =>
7575
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
76-
? AtRightOfLayoutGuide(view, parentView.LayoutMarginsGuide, margin)
76+
? view.AtRightOfLayoutGuide(parentView.LayoutMarginsGuide, margin)
7777
: view.AtRightOf(parentView, margin);
7878

7979
public static FluentLayout AtRightOfReadableContent(this UIView view, UIView parentView, nfloat? margin = null) =>
8080
UIDevice.CurrentDevice.CheckSystemVersion(9, 0)
81-
? AtRightOfLayoutGuide(view, parentView.ReadableContentGuide, margin)
81+
? view.AtRightOfLayoutGuide(parentView.ReadableContentGuide, margin)
8282
: view.AtRightOf(parentView, margin);
8383

8484
public static FluentLayout AtBottomOf(this UIView view, UIView parentView, nfloat? margin = null) =>
@@ -89,17 +89,17 @@ public static FluentLayout AtBottomOfLayoutGuide(this UIView view, UILayoutGuide
8989

9090
public static FluentLayout AtBottomOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
9191
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
92-
? AtBottomOfLayoutGuide(view, parentView.SafeAreaLayoutGuide, margin)
92+
? view.AtBottomOfLayoutGuide(parentView.SafeAreaLayoutGuide, margin)
9393
: view.AtBottomOf(parentView, margin);
9494

9595
public static FluentLayout AtBottomOfMargins(this UIView view, UIView parentView, nfloat? margin = null) =>
9696
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
97-
? AtBottomOfLayoutGuide(view, parentView.LayoutMarginsGuide, margin)
97+
? view.AtBottomOfLayoutGuide(parentView.LayoutMarginsGuide, margin)
9898
: view.AtBottomOf(parentView, margin);
9999

100100
public static FluentLayout AtBottomOfReadableContent(this UIView view, UIView parentView, nfloat? margin = null) =>
101101
UIDevice.CurrentDevice.CheckSystemVersion(9, 0)
102-
? AtBottomOfLayoutGuide(view, parentView.ReadableContentGuide, margin)
102+
? view.AtBottomOfLayoutGuide(parentView.ReadableContentGuide, margin)
103103
: view.AtBottomOf(parentView, margin);
104104

105105
public static FluentLayout AtLeadingOf(this UIView view, UIView parentView, nfloat? margin = null) =>

0 commit comments

Comments
 (0)