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 avoid view clipping on iPhone X

I enabled "Use Safe Area Layout Guides" in the storyboard to support iPhone X interface. I have few UIButtons at the top that are clipped in portrait mode. What do I need to do to avoid clipping? I have autolayout constraint set as button.Top =…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
1
vote
0 answers

Masonry v1.1.0 crash when using safeAreaLayoutGuide

this crash: make.top.left.right.equalTo(self.view.mas_safeAreaLayoutGuide); but this…
Jerny
  • 151
  • 1
  • 8
1
vote
1 answer

NavigationBar without statusbar overlaps safearea in iOS11

I have a problem in iOS11 with the iPhoneX simulator. I have a viewcontroller without the statusbar. To do this I add: - (BOOL)prefersStatusBarHidden { return YES; } It is good so far but the navigationbar overlaps the safearea in the…
Pablo Martinez
  • 1,573
  • 12
  • 31
1
vote
0 answers

Layout design in iPhone X?

I was going through iPhone X layout design , and i found very important to enable use Safe Area Layout Guides in storyboard . As it will help to make View visible , and won't be hidden its UI . My question is apart from that , as a developer what…
Shobhakar Tiwari
  • 7,862
  • 4
  • 36
  • 71
1
vote
0 answers

Google Place Autocomplete searchController hiding under Large iOS11 Navigation Bar

I have followed the google places autocomplete example to add a searchbar to a view under the nav bar. It shows ok but even with the line below the seachbar hides under the larger iOS11 nav bar. I have enabled safeAreaLayoutGuide in AutoLayout. I…
0
votes
1 answer

How to avoid viewSafeAreaInsetsDidChange() being called in UIViewController

I have a child-view controller that do not want to have system safe areas or viewSafeAreaInsetsDidChange() called on rotation. So far this is not working: In Superview: let childVC = UIViewController() self.addChild(childVC) childVC.view.frame =…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
0
votes
0 answers

Adjusting React Native/Expo screen to accommodate the device's notch

I'm developing a React Native/Expo app and I'm facing an issue with the app's layout on devices with a notch (e.g., iPhone13, iPhone14). The content of my app overlaps with the notch area, and I want to make sure it properly adjusts to avoid any…
Ryan See
  • 21
  • 2
0
votes
1 answer

Swift Viewcontroller safeAreaLayoutGuide changes between viewWillAppear and viewDidAppear

I have two views that are part of a login process. On the top of the view I have a progress bar, which is animated to fill to the progress the new view represents. Both Views are built the same way. All my contents are inside a UIView contentView,…
Jan L
  • 233
  • 1
  • 10
0
votes
0 answers

iOS safe area insets for both portrait and landscape before adding a view to the hierarchy?

For various optimization purposes, I want to get the device's max display size without the safe areas for both portrait and lanscape. I can use the UIWindow's safeAreaInsets, but that only gives me the current safe areas, not the one for opposite…
Khal
  • 790
  • 5
  • 23
0
votes
0 answers

iOS NavigationView toolbar spacing behavior differences across apps

I'm building an iOS framework that provides certain UI components for various consuming apps. In one of the UI components, I'm presenting a bottom sheet with a NavigationView overlaid with a ZStack for color. In my test app, everything looks…
Matt Hamann
  • 1,488
  • 12
  • 24
0
votes
0 answers

Swift - Layout problem with scrollview and safe area

I have a problem with a scrollable layout I have two UiViewController : One on the top with a green background (TopVC) and the other is red (the initial VC) which are perfectly scrollable When I start the app, I have this layout problem : I see the…
0
votes
1 answer

Don't understand why my UILabel won't follow safeareaLayout constraints

Am not working with storyboards, and below is the full code for my UIViewController for my Main Menu screen. While everything appears to work, I made an error, but don't understand the outcome. myView, the gray area is set to the safeareaLayout…
0
votes
1 answer

Why is the logic of retrieving SafeAreaInsets in `viewWillTransitionToSize` slightly wrong?

I'm exploring if the landscape "Safe Area insets" can be presicely known in viewWillTransitionToSize when rotating from Portrait to Landscape. I've seen this SO answer, its code is rather a pseudocode: https://stackoverflow.com/a/46581783/2567725 On…
olha
  • 2,132
  • 1
  • 18
  • 39
0
votes
1 answer

My UIView doesn't show up as I try to set constraints relative to safe area programmatically

I have a StackContainerView inside my main view controller called TodayPicksViewController. I am trying to programmatically set the StackContainerView to fill up the whole view controller side to side, with around 50 from top and bottom (just like a…
ProudHKer
  • 85
  • 10
0
votes
1 answer

Image picker cameraoverlay within the safe area for Iphone x and above not working

I have created s custom UI and assigned it to the camera overlay of UIImagePickerController as below. Custom View cameraOverlay = RecordView.loadNib() cameraOverlay.frame = UIScreen.main.bounds …
Khadija Daruwala
  • 1,185
  • 3
  • 25
  • 54