Page Sheet not displaying correctly after closing SFSafariViewController - swift4

I am presenting a view controller as a page sheet. On this page sheet one of the buttons sends the user to a website using SFSafariViewController. When I select done in the SFSafariViewController the previous VC displays fullscreen and then snaps back to page sheet. How can I make it remain as a page sheet when the SFSafariVC is closed?
Page Sheet before SFSafariVC called
Immediately after clicking "done" in SFSafariVC

Related

Swift 4: Click button to next View Controller but the new page's animation is "cover vertically" instead of "shifting" to next page

I am newbie of Swift 4 and I am trying to simply click a button and go to next page.
So I add a button in the first page and another view controller. Then I drag the button to the next page to create the "transaction". However, the animation of the transaction to pop up the next page from bottom, as shown in the image below. What I expect is to shift horizontally from current page to next page. Where did I do wrong? How can I achieve this?
Select the first view controller and choose Editor > Embed In > Navigation Controller. Make sure your segue is Show (Push).

How do I navigate to another screen from a login screen with SwiftUI

I want to navigate from a splash/login view to a home view without the possibility of going back unless the user restarts the application using SwiftUI. I know I can use a navigation link and SwiftUI will present a back button. Is there a way to go from view to view without the back button?
If you need to present a view, you can look at this article
On the contrary if the concern is not to show the back button, on the home view one can hide the back button using the configuration like
.navigationBarBackButtonHidden(true)

Back button issue when alert or ion-select is present

I'm trying to close alert when the alert is present with back key press, else the page will be navigated to another page. I've tried alert.dismiss() in ionViewDidLeave & WillLeave but its not triggering in the back button.It's navigating back page still alert or ion-select options are present in the other page.Please help me to come out from this problem.

How to disable parallax when a bootstrap modal is opened?

My website home page uses parallax. I have a button in my home page which opens a modal when clicked. The problem is if I scroll over the modal to see overflown modal body content, the background i.e html body starts scrolling. Clicking or hovering over the modal doesn't make any difference. But when I disable parallax modal works perfectly.
How can I achieve default modal functionality thereby keeping parallax feature also ?

iPhone Login Screen that shows a Table View after logging in the user

I have a navigation based template application, I parse data into table view.
I want to put a login screen before parse the data. I did the login screen and and succeed the login check.
My problem is that when the user presses the button I change the view to the tableview.
what a way should I draw? I want to learn how can i close the tableview screen when the app launched and after pressed the button I want to show the tableview.
If you are using a navigation based template, you could simply push another view on the stack, or you could have the second table view as the first screen, and push the login over the top. pressing on a button to login will pop the login screen off the stack to reveal the main tableview screen.
I have put the login details in the user preferences screen.