Questions tagged [safearealayoutguide]

The safeAreaLayoutGuide is a property from UIView class (Apple iOS) representing the portion of the view that is unobscured by bars and other content.

Apple documentation for safeAreaLayoutGuide.

240 questions
1
vote
0 answers

iOS: Constrain Safe Area to Superview in nib file

I have a nib file that creates a view for my view controller. I want to use the Safe Area Layout Guide, so I checked off that box under the size inspector. However, the safe area (highlighted in blue) clearly doesn't match the height of the view.…
maddie
  • 1,854
  • 4
  • 30
  • 66
1
vote
1 answer

Safe area even though I've specified FULL SCREEN

I have turned on full screen and turned off and hidden the top bar. My scroll view keeps resetting to put safe area I want safe area gone. Does any one have any clue of how to remove safe area completely? I want a full screen layout. Safe area even…
TechyGod
  • 51
  • 9
1
vote
2 answers

safeAreaInsets issues in SpriteKit

I´m developing a game and now I have noticed that it was not looking as I expected on iPhone X. What I need is to place a label on top right corner, on iPhone X the label was not showing at all. So I read about Safe Area and came up with this…
1
vote
0 answers

Present Controller using iOS Safe Area Layout

I am using iOS 11 safe area layout guidelines and set background color of status bar like this extension UIApplication { var statusBarView: UIView? { return value(forKey: "statusBar") as? UIView } }…
Noshaid Ali
  • 127
  • 1
  • 12
1
vote
1 answer

Xamarin Forms - Status bar overlaps the content in IOS (safeareainsets issue)

In Xamarin Forms, I am using to make the Application UI compatible with iPhone X, but its…
1
vote
0 answers

iPhone X safeAreaInsets Dynamic from function

I'm using SnapKit for layout in my iOS project and in landscape mode i want to add some constraints at the bottom. with the following code everything works good. containerView.snp.updateConstraints { (update) in …
Konstantinos Natsios
  • 2,874
  • 9
  • 39
  • 74
1
vote
1 answer

safeAreaLayoutGuide - landscape mode

I have set safeAreaLayoutGuide like this: let guide = view.safeAreaLayoutGuide NSLayoutConstraint.activate([ topControls.topAnchor.constraint(equalTo: guide.topAnchor, constant: 0) ]) this works great. However, when I rotate device to landscape…
Martin Perry
  • 9,232
  • 8
  • 46
  • 114
1
vote
1 answer

HidesBottomBarOnPush iOS10 safe area pinning issue

I'm having an issue with the safe area on iOS 10 where I trigger a segue to a view controller with hidesBottomBarOnPush enabled. The content which is pinned to the bottom safe area on this view controller starts off above the tabs then jumps to the…
TomRichardson
  • 5,933
  • 5
  • 27
  • 30
1
vote
1 answer

Enable safe areas programmatically

Is there a way to enable Safe Areas programmatically? Context: The app i'm working on is stuck to iOS 7 as target, and that probably won't change for a while. Xcode won't accept Safe Areas enabled unless i drop iOS 7 and 8 compatibility. The…
baguIO
  • 391
  • 2
  • 14
1
vote
3 answers

Calculate Height of UIView with Safe Area Guides for iPhone X

I have a UIView called headerview which I use like a NavigationBar. It has a constant size of 60 and top/left/right layout constraints which are 0. It looks okay for all devices except iPhone X because of safe area layout. If I change size to 90, It…
Mr Some Dev.
  • 315
  • 4
  • 19
1
vote
1 answer

iPhoneX UI layout issues

Our app has a uiviewcontroller with three container views, vertically stacked. When I run the app on iPhoneX in the sim there is space above and below the views that does not appear in iPhone 8/7. Here's a side by side comparison of the containers…
1
vote
3 answers

Status bar color isn't changing on iPhone X to the left and right of notch

Hello I updated to new Xcode 9 and started using safeAreaLayout guide to support iphone X. From xib, I just used safeAreaLayout guide and adjusted by top and bottom constraints to safeArea. Here is what I got iphone X (iOS 11) iphone 6 (iOS 11) As…
Ranjit
  • 4,576
  • 11
  • 62
  • 121
1
vote
1 answer

How to set up all controllers' view to suit safe area

My app now supports iOS7.0+, and I want to cover the area outside of safe area with black color, so the bottom 34 height area should look well. But I get so many controllers to change, is there a shortcut? I've searched many guides, but it all just…
IsEE
  • 45
  • 6
1
vote
0 answers

Objective-C: Detect iPhone X with Safe Area Insets

I'm trying to detect if the current device is an iPhone X in Objective-C. I've looked at some other posts that do this in Swift and a proper method seems to be to compare the safe area insets with UIEdgeInsets.zero. However, whenever I attempt to do…
1
vote
0 answers

iPhone X safe area size

I am trying to upgrade my app for iPhone X. I am not using auto-layout, constraints or safe area. When I run my app on iPhone X simulator, this what I get: My layout is in yellow area. On different model of iPhone it starts just below bar with…
otter
  • 93
  • 2
  • 8