Skip to content

Commit f6d896c

Browse files
committed
tweak safe area method names
1 parent 9968b17 commit f6d896c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Cirrious.FluentLayout/AdvancedFluentLayoutExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,31 @@ public static class AdvancedFluentLayoutExtensions
2121
public static FluentLayout AtTopOf(this UIView view, UIView parentView, nfloat? margin = null) =>
2222
view.Top().EqualTo().TopOf(parentView).Plus(margin.GetValueOrDefault(DefaultMargin));
2323

24-
public static FluentLayout AtTopOfWithSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
24+
public static FluentLayout AtTopOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
2525
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
2626
? view.Top().EqualTo().TopOf(parentView.SafeAreaLayoutGuide).Plus(margin.GetValueOrDefault(DefaultMargin))
2727
: view.AtTopOf(parentView, margin);
2828

2929
public static FluentLayout AtLeftOf(this UIView view, UIView parentView, nfloat? margin = null) =>
3030
view.Left().EqualTo().LeftOf(parentView).Plus(margin.GetValueOrDefault(DefaultMargin));
3131

32-
public static FluentLayout AtLeftOfWithSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
32+
public static FluentLayout AtLeftOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
3333
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
3434
? view.Left().EqualTo().LeftOf(parentView.SafeAreaLayoutGuide).Plus(margin.GetValueOrDefault(DefaultMargin))
3535
: view.AtLeftOf(parentView, margin);
3636

3737
public static FluentLayout AtRightOf(this UIView view, UIView parentView, nfloat? margin = null) =>
3838
view.Right().EqualTo().RightOf(parentView).Minus(margin.GetValueOrDefault(DefaultMargin));
3939

40-
public static FluentLayout AtRightOfWithSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
40+
public static FluentLayout AtRightOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
4141
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
4242
? view.Right().EqualTo().RightOf(parentView.SafeAreaLayoutGuide).Minus(margin.GetValueOrDefault(DefaultMargin))
4343
: view.AtRightOf(parentView, margin);
4444

4545
public static FluentLayout AtBottomOf(this UIView view, UIView parentView, nfloat? margin = null) =>
4646
view.Bottom().EqualTo().BottomOf(parentView).Minus(margin.GetValueOrDefault(DefaultMargin));
4747

48-
public static FluentLayout AtBottomOfWithSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
48+
public static FluentLayout AtBottomOfSafeArea(this UIView view, UIView parentView, nfloat? margin = null) =>
4949
UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
5050
? view.Bottom().EqualTo().BottomOf(parentView.SafeAreaLayoutGuide).Minus(margin.GetValueOrDefault(DefaultMargin))
5151
: view.AtBottomOf(parentView, margin);

QuickLayout.Touch/Views/ViewWithSafeAreaView.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ public override void ViewDidLoad()
4343

4444
viewContainer.AddConstraints(
4545
sampleText.AtTopOf(viewContainer),
46-
// sampleText.AtTopOfWithSafeArea(viewContainer), -> use this when UINavigationBar not present to avoid content overlap under iPhone X notch
47-
sampleText.AtLeftOfWithSafeArea(viewContainer),
46+
// sampleText.AtTopOfSafeArea(viewContainer), -> use this when UINavigationBar not present to avoid content overlap under iPhone X notch
47+
sampleText.AtLeftOfSafeArea(viewContainer),
4848
//sampleText.AtLeftOf(viewContainer), -> if this is used, content overlaps under notch on landscape
49-
sampleText.AtRightOfWithSafeArea(viewContainer),
49+
sampleText.AtRightOfSafeArea(viewContainer),
5050
//sampleText.AtRightOf(viewContainer), -> if this is used, content overlaps under notch on landscape
51-
sampleText.AtBottomOfWithSafeArea(viewContainer)
51+
sampleText.AtBottomOfSafeArea(viewContainer)
5252
//sampleText.AtBottomOf(viewContainer) -> if this is used, content overlaps under notch on landscape
5353
);
5454
}

0 commit comments

Comments
 (0)