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
1 answer

How to fix SafeAreaLayoutGuide

I am making a game with canvas. The game is clipped because of the top notch, I've tried SafeAreaLayoutGuide but nothing happened. Please look at the code below and let me know what I am doing wrong. -(void) createGLView { //create our…
The Keeper
  • 429
  • 7
  • 16
1
vote
2 answers

iPhone X - safe area layout guides - I want my app display on full screen, not only in the safe area

I have a problem with my code. My application displays within iOS safe area layout guide, however I'd like to force it to display "outside". I have searched the internet and unfortunately I found only "reverse" problems. I don't use interface…
user1880342
  • 128
  • 10
1
vote
1 answer

Storyboard and "Bottom layout guide is deprecated since iOS 11.0" warning

I'm getting this warning when building: /* com.apple.ibtool.document.warnings */ /[path]/MyStoryboard.storyboard:xxx-xx-xxx: warning: Bottom layout guide is deprecated since iOS 11.0 [7] I've read some posts like this one. I have the Use Safe…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
1
vote
1 answer

Swift 4.2 SafeAreaLayoutGuide frame is the same as view.frame on View Did Load

I'm using safearealayout guides, programmatically (i.e.) without storyboards. I want to access the safeAreaLayoutGuides, layoutFrame size within my app but don't know when to call it. If you call on viewDidLoad, the size returned is the same as the…
1
vote
1 answer

Why is additionalSafeAreaInsets propagated to child VCs?

There is no evidence of this according to Apple's documentation, but I have found that additionalSafeAreaInsets is propagated to childVCs, but it's clearly the case. Running this gist on an iPhone 7 simulator will output that both the container VC…
Pierluigi Cifani
  • 224
  • 2
  • 14
1
vote
2 answers

UITabbarController hide tab bar breaks safe area layout

I'm having a frustrating time getting an auto layout issue to work. Hopefully some fresh eyes on the problem will be better at finding a solution... I have a UITabBarController in a storyboard file, and in the first view controller there is a…
RL2000
  • 913
  • 10
  • 20
1
vote
0 answers

BottomLayoutGuide iOS 10 vs iOS 11

Good day! I have a trouble with placing a bannerView in my app. Its a static TableViewController, and the bannerView is supposed to be at the bottom of the screen. I did everything as it is said in Google Mobile SDK. func…
Konstantin
  • 197
  • 3
  • 12
1
vote
0 answers

Replacing edgesForExtendedLayout with safeAreaInsets or LayoutGuide **WITHOUT** interface builder

Preface: I'm doing everything programmatically. 0 interface builder. Previously, when pushing a VC onto a navVC stack, the pushed VC would have the upper edge occluded by the navbar. I want it so the top edge of the pushed VC is under the nav…
1
vote
0 answers

How to hiding UITabbarController tabBar without removing safearea

I'm hiding the tabBar of a UITabBarController for a certain screen with a UIScrollView. However, that causes the scrollView to cover the entire iPhoneX screen. How can I hide the tabBar without having the scrollView cover the safe area? I've…
Bob
  • 513
  • 1
  • 5
  • 14
1
vote
2 answers

IphoneX Safe Area leads to hidden content while using PageViewController

Issues with safe area and page view, i wasn't able to post the question because stackoverflow was giving me an error about "code" but i include no code so i instead posted images, please refer to the below images thanks.
Travis Delly
  • 1,194
  • 2
  • 11
  • 20
1
vote
0 answers

Safe area guide layout for iOS 8

I have an application supporting iOS 8 and above versions. How can I manage UI of it so it is perfect in iPhoneX also?
Krutika Sonawala
  • 1,065
  • 1
  • 12
  • 30
1
vote
1 answer

Xcode 9 - Safe Area Layout Guides Error Comes Back

I am making a game in SpriteKit for iOS, and I want my app to support iOS 8.0 devices. I changed my deployment target to 8.0, and suddenly I have an error: Main.storyboard:7Ti-J4-z1q: error: Safe Area Layout Guide before iOS 9.0 So I Google how to…
user7254518
1
vote
2 answers

How to use Safe Area Layout Guide without Autolayout?

I would like to compact my iOS app also in iPhone X. This iOS app developed using autoresizing and deployment target is iOS8. I had chosen my viewcontroller in storyboard.Then I tried to check Use Safe Area Layout Guide but it automatically appear…
IKKA
  • 6,297
  • 7
  • 50
  • 88
1
vote
0 answers

Loading Nib file as inputAccessoryView

I have a Nib file. Image attached. I would like this Nib file as the inputAccessoryView. Reason being accessoryView doesn't adhere to Safe Area on iphoneX. grrrr! I have set up my Nib file as per this tutorial...…
David Henry
  • 1,972
  • 20
  • 43
1
vote
3 answers

iOS 9 and 10: blank space added at the screen top while using safe area layout guide

In my swift 4 project I have iOS 9.0 as deployement target and I'm using the safe area layout guide. In the storyboard, I always give 0 as value between my main view top space and the safe area top. When I run the application in iOS 9 or iOS 10 I'm…
Ne AS
  • 1,490
  • 3
  • 26
  • 58