Skip to content

Commit

Permalink
improve consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackmodford committed Aug 14, 2020
1 parent b227197 commit 28ab935
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Cirrious.FluentLayout/AdvancedFluentLayoutExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ public static FluentLayout AtTopOfLayoutGuide(this UIView view, UILayoutGuide la

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 comments on commit 28ab935

Please sign in to comment.