navigationBarBackButtonHidden(true) does not work on NavigationView Ipad Portrait - ipad

Currently have an Ipad app with a NavigationView. In portrait mode, the button to open the side drawer is turned into a back button. There is no way currently to hide this back button, or change it. Hiding the entire navbar works, but is not the intended solution we want. We would like to hide the existing button, and replace with the icon shown when using the sidedrawer in landscape.
.navigationBarBackButtonHidden(true) Does not work on any view.

Related

How to set back button to be consistent for both vertical and horizontal stack view?

I have a side navigation view using NavigationView with side bar menu.
In Portrait mode, I have a back button with the title "Menu". In Landscape mode, I have a menu icon. How do I keep the UX consistent for both platforms to show the menu icon? (attached)
NavigationView {
}
.listStyle(.sidebar)
.navigationTitle("Menu")
Menu Back Button
Menu Icon Button

NavigationBar button mis-alignment in some views on iOS

I have a couple views that I'm showing as examples of a problem I'm having with buttons in the UINavigationBar. Here is a view showing the button correctly:
Here is the button in another view mis-aligned:
In both views, I have a UINavigationBar, and within it, a button (which is an image). In one view, the button displays aligned fine and fits in the navigation bar properly; however, when I use the back button (from the good view), the button on the navigation bar mis-aligns (seems like it's moving down, or zooming, or something). I've scoured the code, and done lots of adjustments/tweaks in the storyboard for the view, but can't figure out why the button moves in the simulator.
I'm fairly new to iOS development, so I've turned on/off endlessly different settings in the storyboard, and nothing fixes it.

How to mimic iOS Control Center behaviour

I'd like to mimic the iOS Control Center behaviour. I have a button in the bottom of my screen, and I'd like to reveal a second view controller as the user slides from that button to the top.
The behaviour is also similiar to the iOS and the Android status bar. What's the best solution to achieve this?

Adjust UIPopover when the iPad keypad splits

I have an iPad app in landscape orientation.
Which has multiple UIButtons on the screen from top to bottom which present a UIPopover with a TextView in it.
When the keyboard appears and covers the button, the popover moves over the keyboard, and comes back nicely when the keyboard is dismissed.
but when the keyboard is suddenly put into split mode and if the popover was for a button below the keyboard then the popover comes back and goes behind one of the halves of the keyboard.
How should such situation be handled gracefully ?
Would creating a transparent view/button that you launch the Popover view from work? Then you could move the button to where ever you want.

UINavigationController scrolls down on back button click

I'm working on an iPhone / iPad app with several navigation controllers. When I click a back button of a view while the device is in landscape mode, the previous view scrolls vertically into the screen, instead of scrolling horizontally as usual.
Push animations always work horizontally, as it should be.
What could be causing this weird problem?
Thanks,
Adrian
Are you sure the view controller, you're getting back to, is set to deal with rotation properly ?
I had a similar issue using MonoTouch.Dialog until I added Autorotate = true; to every (non-leaf) DialogViewController inside my application.

Resources