Questions tagged [uimodalpresentationstyle]

157 questions
0
votes
0 answers

Dismiss modally presented view controller that is presenting another view controller

Overview I have a root view controller (rootVC) and that view controller presents a view controller that contains some settings (VC1). This is using the page sheet presentation style, so it is presented like a card that is interactively dismissable…
ashipma
  • 423
  • 5
  • 15
0
votes
1 answer

UIPresentationController with interactive presenting view

I looked at this question, but it does not help: Interacting with presenting view and UIPresentationController I am trying to implement a sheet presentation controller, similar to the UISheetPresentationController for iOS 15, except I need it to…
0
votes
1 answer

Swift UIWindow how to add in full screen mode

I am trying to add another UIWindow and make it makeKeyAndVisible above main window. But is appears as sheet (modal) not in fullScreen mode I've tried to user modalPresentationStyle on viewController and nothing changes. rootViewController =…
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143
0
votes
1 answer

How to get rounded corner & dynamic height of popped custom modalPresentationStyle VC

When present a VC, the default style is not cover full screen and with a rounded corner like below gif illustrated. But I want to control the height of modalPresentation, let's say a 1/4 screen height by default and dynamic changed according to…
Zhou Haibo
  • 1,681
  • 1
  • 12
  • 32
0
votes
3 answers

UINavigationController modalPresentationStyle not working on iPhones

I'm trying to present UINavigationController as a small window using the following way. It works fine on iPads but it still displays fullScreen on iPhones. Any tips on what I am doing wrong will be greatly appreciated! class…
isuru
  • 3,385
  • 4
  • 27
  • 62
0
votes
1 answer

How to present viewcontroller in fullscreen on ipad

I have a view controller , I can present it modally with full screen on iPhone but It's not becoming fullscreen on ipad. ( Its a small screen centered on iPad ) iVC.modalPresentationStyle = .fullScreen iVC.presentFullScreen(myVC, animated:…
0
votes
0 answers

Swift: change size of SwiftUI view presented by a UIKit ViewController

I have a project which has been entirely built using UIKit. We are now trying to slowly introduce SwiftUI for any new UI views that we build into the app. So y current dilemma is that we have a UIViewController which contains a view with a button…
DevB1
  • 1,235
  • 3
  • 17
  • 43
0
votes
1 answer

currentContext presentation style changes the size of the child view controller's view

I have a parent view controller and a child view controller that takes up a portion of the parent's main view: class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let childVC = ChildVC() …
Kevvv
  • 3,655
  • 10
  • 44
  • 90
0
votes
3 answers

How to present ViewController in full screen with behavior of popover? Swift

I need to present VC in full screen, but with ability to swipe it down as it was popover, similar to how it works in Apple Music in song details. I've tried every option in vc.modalPresentationStyle, but it's either in full screen without ability to…
0
votes
0 answers

Presenting a modal overlay ViewController removes the previous form the view hierarchy

I'm trying to create a custom ViewController that will act as a UIAlertViewController, meaning that it will be displayed over the current ViewController, and will be dismissible after the user presses OK. Let's call this the ErrorViewController. In…
Lucas P.
  • 4,282
  • 4
  • 29
  • 50
0
votes
1 answer

UIViewController automatic presentation on top of full screen presentation

I have a few UIViewControllers that present on top of one another using modalPresentationStyle = .fullScreen. I want to present another one on top using the .automatic style. This works okay, but does not have the card-like style as expected (where…
0
votes
1 answer

How to push on new screen after dismiss model sheet in SwiftUI?

I Have to Implement like To create a login screen in the screen user can enter mobile number and click on the login button model sheet will open for top verification after OTP verification sheet must be dismiss and navigate on the…
0
votes
2 answers

Difference between 2 adaptivePresentationStyle methods of the UIPopoverPresentationControllerDelegate protocol

I am using a popover view controller where I don't want the popover to cover the full screen (iOS 13). I was trying to use: func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle { return…
0
votes
0 answers

Animate a UINavigationController pushViewController like a presentViewController?

I have a viewController in a UINavigationController that I need to push onto the navigation stack, but instead of the traditional push animation style, it needs to look like the default modal presentation style used in presentViewController. Is…
3254523
  • 3,016
  • 7
  • 29
  • 43
0
votes
2 answers

setModalTransitionStyle and setModalPresentationStyle, set size of view

I create a UIViewController (a custom calendar and its size is 550x440) and when i push a button it must be appear; the problem is that if I use setModalPresentationStyle and setModalTransitionStyle they change size of my view; can I set the size…
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241