Here is the second part of popups using the Scene Dock:
Enjoy this info? Visit my Patreon page to support educators and artists.
My YouTube Channel
Need help with SwiftUI? Check out my products at: Big Mountain Studio Website
Showing posts with label modal popup. Show all posts
Showing posts with label modal popup. Show all posts
Sunday, April 9, 2017
Modal Popups using the Scene Dock - Zelda App (iOS, Xcode 8, Swift 3)
I have created videos on how to make modal popups in iOS before. But here is yet another way in which you can create popups.
Saturday, June 4, 2016
Modal Popups on iPhone
The way to achieve the look of a modal popup on the iPhone lies in the settings of the Storyboard Segue from the view controller that will be triggering the popup to the view controller that contains the popup.
I choose Cross Dissolve for the Transition so the popup doesn't slide into view but materializes into view on top instead.
You can do all this in just one view controller but I did it this way to reuse the popup in many view controllers and I like the simplicity of it.
For the modal popup view controller I will sometimes add a blur effect or a view with a lowered alpha property so you can still see the underlying screen a little and then put the content in a smaller size.
Here is an example:
(Xcode 8)
I choose Cross Dissolve for the Transition so the popup doesn't slide into view but materializes into view on top instead.
You can do all this in just one view controller but I did it this way to reuse the popup in many view controllers and I like the simplicity of it.
For the modal popup view controller I will sometimes add a blur effect or a view with a lowered alpha property so you can still see the underlying screen a little and then put the content in a smaller size.
Here is an example:
View Hierarchy
If you don't get the right view hierarchy, the transition will be messed up.Wrong Way
Right Way
Close the Popup
Finally I want the user to be able to touch anywhere off the popup to dismiss it. This can be done by adding a Tap Gesture Recognizer or a button with no text to cover the whole screen below the popup's view.(Xcode 8)
Subscribe to:
Posts (Atom)
SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...
In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...
-
This post visually shows the stack view's Alignment and Distribution property settings. There is also a section on resolving auto layou...
-
I couldn't find a tutorial on this so this is my documented journey into trying to figure out how to implement OAuthSwift into an iOS p...
-
I had someone ask about aligning text within a TextField view and I didn't have a page in my book for this but added one just now. ...



