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
9
votes
3 answers

UITabBar with safe area inside programmatically created UIViewController

Before you mark it as duplicate please note, that I did read this and this seems to not apply to UITabBar Both UIViewController and UITabBar are created programmatically. Constraints are set like: public override func viewDidLoad() { …
Jakub
  • 13,712
  • 17
  • 82
  • 139
9
votes
5 answers

How to set Safe Area layout in iPhone x

I am developing Xamarin forms app and my app seems with safe area set in top. But need to ignore it. Current scenario: Excepted scenario: I have googled regarding this and got below link, tried out as mentioned in below links and nothing…
cheran
  • 473
  • 1
  • 5
  • 11
9
votes
2 answers

SpriteKit - safe area layout Iphone X

So, Currently I have a game that i’ve made in sprite kit and have used this way of fitting everything to the screen size: buyButton = SKSpriteNode(texture: SKTexture(imageNamed: "BuyButton"), color: .clear, size: CGSize(width: frame.maxX / 2.9,…
Astrum
  • 375
  • 6
  • 21
9
votes
5 answers

MKMapView ignoring Safe Area on iOS 11 and iPhone X

I'm trying to migrate a app to iOS 11 and for days I'm stuck with one ugly UI bug after the other. This time: MKMapView. I have a bunch of buttons which I pinned to the Safe Area Layout Guides and everything is working fine - except the MKMapView.…
xxtesaxx
  • 6,175
  • 2
  • 31
  • 50
8
votes
1 answer

The SafeArea insets are not updated when UITabbar is hidden

I am using the tab bar based app and on detail screen the tab bar is hidden. The issue is when the tab bar is hidden it will still occupy the white space that of tab bar and safeAreaLayoutInsets are not updated. On orientation change or moving from…
Raghav
  • 625
  • 1
  • 12
  • 31
8
votes
1 answer

How to add a safe area programmatically

When you open the view, it will look like the image below, i Phone x open view i Phone 8 open view For iphone x, I would like to add a safe area programmatically in the current view. The source to try is as follows. UIView *view = self.view; if…
Nam
  • 163
  • 1
  • 1
  • 8
7
votes
1 answer

SwiftUi - Filling a wide-aspect screen

TL;DR: I can't draw an image exactly onto the full screen on wide-aspect (13:6) phones. If I observe the safe area, the error is (predictably) underscan. Using .edgesIgnoringSafeArea() goes (unexpectedly) too far in the other direction. Update Apple…
Andrew Duncan
  • 3,553
  • 4
  • 28
  • 55
7
votes
1 answer

set Webview in safe area of iphone X

I am new to Xcode and I don't know how to set webview in safe area of iPhone X. I have gone through couple of various answers, but they didn't help. The only thing I know about this app is, the view is set programmatically. Below is my…
ashish pandey
  • 1,653
  • 1
  • 10
  • 15
6
votes
1 answer

How to make custom navigation bar background color to go beyond safe area in SwiftUI

I implemented a custom navigation bar which is simply a view with a title text and an arrow to dismiss the view. I want only the background color of the nav bar to go beyond the top safe area whilst the content respects the safe area…
Rijo Samuel
  • 281
  • 3
  • 10
6
votes
5 answers

CollectionView header content under status bar

Here's a collection view constrained to top, left, right, and bottom of the superview with safe area layout guide enabled: I want my collection view header to be shown under the status bar. I've achieved this for iPhone 4 - 8+ screen dimensions by…
Kelvin Lau
  • 6,373
  • 6
  • 34
  • 57
6
votes
3 answers

UIPageViewController with Scroll Transition Style automatically adds Safe Area insets for iPhone X

I'm developing image gallery like slider using UIPageViewController and I'm having troubles with UIPageViewController automatic insets in Scroll transition style mode. Here is my layout: UIViewController with UIContainerView (magenta…
6
votes
1 answer

Ionic iPhone X safe areas not working properly

I'm trying to fit a between the top toolbar and the bottom tabs area. And I need it to work across iPhones 5-X and iOS 10-11. If you ignore iOS10, then no problem exists, but I also need the older versions to work. Here's my CSS. "margin-top" gives…
Dimitri
  • 2,240
  • 3
  • 21
  • 39
6
votes
0 answers

iOS safe area layout guides for custom tabBar

I have an app based on custom tabBar controller and now, since we have safe area layout, I want to change my app to fully utilise the iPhone X screen. So I want to fix the issue of tabBar, which currently doesn't consider safe area. I have gone…
Paras Gorasiya
  • 1,295
  • 2
  • 13
  • 33
5
votes
3 answers

ios13 UIPopoverViewController showing UITableViewController - Safe Area problems / Missing parts of table

In the same theme as this post: iOS 13 - UIPopoverPresentationController sourceview content visible in the arrow I have a UITableViewController instantiated from the Storyboard. I'm presenting it in a UIPopoverViewController. Depending on…
5
votes
0 answers

Safe area insets wrong after changing window rootViewController

I am using inputAccessoryView of UIViewController. Everything works fine until I change UIWindows rootViewController. After that safeAreaInsets for portrait are reported as landscape and other way around. This is only happening when changing from…
josip04
  • 224
  • 3
  • 13
1 2
3
15 16