Draggable UIView is interacting undesirably with Tab Bar - swift

I have a UIView that I can drag around the screen via UIPanGestureRecognizer. However, when I drag it down to the bottom of the screen, the view automatically starts to squish vertically when it touches the tab bar. If I keep dragging downward, it will eventually be allowed to drag under the tab bar.
I don't want it to interact with the tab bar at all though. It should just slide under it as if it weren't there. The view controller has Extend Edges Under Top Bars and Extend Edges Under Bottom Bars checked.
Why is the view interacting with the tab bar in the first place? And how do I prevent this behavior?

Finally fixed this by unchecking the "Extend Edges Under Bottom Bars" option on the view controller. The view now slides unimpeded under the tab bar.

Related

Lower Z index of view in storyboard

I created a tab bar with UIView in the storyboard, and after that I decided to add a UIImageView under the tab bar view. The image must be at the bottom, behind the tab bar, but the image view overlaps my tab bar. How do I lower my image view's z-index to fix the problem?
I've already tried moving the tab bar up in the Document Outline:
Pictures for understanding:
First make sure the Document Outline is opened in your storyboard. It's the icon at the bottom-left of your screen.
Then just drag the image view before the tab bar. This will bring it to the bottom.

How To Make Tab Bar Buttons Tappable Outside Tab Bar Bounds

I have a standard UI Tab Bar controller, with the tabs all added using interface builder. I've used the image inset properties to make the large centre button sit on the edge of the tab bar. However, when I tap on the half that's outside the tab bar bounds it doesn't register anything.
I've currently got no code in place for the tab bar, but I'd like to know how I can have a button like this and make it's taps register even when it's outside the tab bar bounds.

Tab Bar Within a Scroll View

I need to be able to have a scrollable view that contains Tab Bar and two views. The Tab Bar is only supposed to show on the first view; when you swipe right to get to the second view, the tab bar shouldn't be there. (Its supposed to work exactly like Instagram's stories where you can slide to get to the camera on the home screen). Right now I have the scrollable container view embedded in the tab bar controller and I added the two views to the container view within its class. However the Tab Bar is on the bottom of both views.
container view embedded in tab bar controller
code for container view
Does anyone have a solution to fix This?

issue in StoryBoard: Other views at the top of the table view are not visable

I have started an app using story board.
In that i have used tabbar controller
In a view, I have Table view in that having a custom cell, And I have added a search bar at the top of the Table view. as shown bellow
The problem is when I add Search bar very close to the navigation bar, It does not display and if i added little down it was displayed
what was the issue is in 2px difference?
Go to IB Inspector
Select search bar and set AutoSizing Mask like this attached Picture.. Enable left, right, top and center position.

Displaying a ToolBar above the Tabbar

I have a scroll View. Now i need to add a tool bar when a button is clicked (above the tab bar). Since this is a scroll View, even if the user scrolls the page down the tool bar should be visible right above the toolbar.
my solution so far;
1.) i added the toolbar to a Window, and display the window (But i don't want to use a Window). Is there a way to do this using a UIView ?
My pseudocode : ToolBar ---(added to)--> UIWindow ----(display)--->
display
Create a containing view to house both your scroll view and the toolbar. Initially have your scroll view the full size within the containing view. Resize it smaller on button press and add the toolbar below it. When you hide the toolbar do the reverse (remove the toolbar from the containing view and resize the scroll view back to taking up the full view).