564 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
107
views
UIViewController.presentModalViewController hangs indefinitely
I have 3 view controllers, VC1, VC2, and VC3, that are instantiated when the app starts.
I want to present them modally in a loop, like this:
VC1 -> VC2 -> VC3 -> VC1
On each view controller,...
0
votes
0
answers
161
views
Swift: Trying to dismiss the presentation controller while transitioning already
I have 3 controllers like that: A -> B -> C
A: Present to B
B: Present to C
From C, I used the code below to transition to A
window.rootViewController = nil
window.rootViewController = vc
let ...
4
votes
2
answers
4k
views
Presenting SwiftUIView sheet with height fitting content size from UIViewcontroller
I need to present a sheet containing SwiftUI view from UIViewController, but the height of the sheet has to fit the height of the content of the SwiftUI view.
I know that there is a possibility to ...
0
votes
1
answer
33
views
Opacity only works for a moment when modally presenting a UIPageViewController
I have a modal segue to a UIPageViewController.
I would like the background of the UIPageViewController to be clear. I have set this in the viewDidLoad(), and have set the custom view controller for ...
0
votes
1
answer
137
views
Xcode Show segue in Xcode 15 presents the viewcontroller as a modal
I have a very simple setup, where when the user clicks sign up or login, it should bring them to the respected viewcontroller using the Show (e.g. Push). However, it is presented modally when the app ...
1
vote
2
answers
1k
views
Leaving the presentingViewController full screen while presenting a pageSheet
When presenting a UIViewController modally after iOS 13, the presentingViewController gets pushed down to also look like a view in the stack like seen in this image:
But in Apple Maps, for example, ...
0
votes
1
answer
196
views
Swift: deallocate modally presented view controller
I have a modally presented SearchviewController that contains a UISearchController.
When swiping down it gets deallocated, but only if the searchControllers searchBar is not in editing mode. Only if I ...
0
votes
1
answer
431
views
Dismiss Presented view without any click event
I am working with an app in SwiftUI.I have presented one view using
.sheet(isPresented: $doIWantThisViewToShowUser, content: {
DraggedUsersMenu()
})
...
0
votes
1
answer
44
views
Add alpha to parentVC.view
I am trying to add alpha to the background view when tapped on a button. So far achieved adding blur but alpha not so much.
How can I add alpha to the background so that when the bottom sheet appears ...
1
vote
1
answer
3k
views
How to modally present a ViewController from SceneDelegate?
I have an OnboardingViewController which available to access from app's settings in a modal style.
When a user opens the app first time I want to show him the OnboardingVC in the same modal style (...
3
votes
0
answers
1k
views
Prevent presenting view controller from changing size in background
The current default behavior on presenting view controller modally is that the presenting view controller decreases size in background which shows the application window behind it with default window ...
1
vote
0
answers
58
views
I can't present ViewController in UIView
Flow:
AViewController(modal on MainViewController)
FooView(Cell click) -> This view is like cell
BViewController -> modal on AViewController
I want BViewController to be present when I click ...
0
votes
1
answer
773
views
Present a new view when a condition has been met in SwiftUI
Hi everyone I'm new to SwiftUI .. I need to present a view containing two textFields with modal presentation only after a condition has been checked.
Example .. When the user pushes the login button ...
-1
votes
1
answer
1k
views
Modal View not displaying bottom view correctly
I am currently presenting a modal with a view at the bottom. Unfortunately, when the modal is displayed, the view controller is pushed down some and cuts off the bottom view found on this controller. ...
0
votes
1
answer
680
views
iOS - How can I present a full screen controller in iPad as same as iPhone does having curved both the screen presented and behind the presented? [closed]
I've attached reference image. I want to know the 1 or 2 magic lines. I've tried in many ways with different styles but could not able to achieve.
As you can see in below image at Right side iPad ...