Questions tagged [uipresentationcontroller]

Introduced in iOS 8, UIPresentationControllers allow you to control the "chrome" during a custom view controller transition.

Introduced in iOS 8, UIPresentationControllers allow you to control the "chrome" during a custom view controller transition.

95 questions
1
vote
1 answer

Custom UIModalPresentationStyle.custom: Why does presentationController(forPresented get called but not animationController(forPresented?

I'm using UIModalPresentationStyle.custom. In my UIViewControllerTransitioningDelegate why does this method get called: func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) ->…
1
vote
0 answers

Can you use UIPresentationController for custom presentation/animation styles?

I always try to keep my code up to date by using all the advancement and best practices in the API but this time it seams I’m hitting a wall. I’d like to upgrade some of my code from using View Controller Containment to Presentation Controllers. The…
1
vote
3 answers

Is it possible to create an IBOutlet in a non-view class?

I'm creating a custom presentation controller for dimming the background when a view controller is presented. The presentation controller adds a couple of subviews when the transition begins which works great. However, I would like to setup the…
Mischa
  • 15,816
  • 8
  • 59
  • 117
1
vote
0 answers

Changing frame of presented navigation view controller from custom UIPresentation Controller not changing bounds of navigation controller childrens

I am presenting a navigation controller with custom transition and custom presentation controller. Presentation controller listen for keyboard, and change presented view controller frame accordingly. In first screen keyboard is active so presented…
1
vote
1 answer

UIPresentationController not calling containerViewWillLayoutSubviews until after display

I have a UIPresentationController displaying a side menu over the main view with a fixed width of 300. Then from the side menu the user can open a full screen modal view. When the modal view is dismissed the menu view fills the screen during the…
ima747
  • 4,667
  • 3
  • 36
  • 46
1
vote
1 answer

UIPopoverPresentationController width and height not setting

I am trying to present a popover controller but for some reason I can't get the width/height of the popover to set correctly. Here's the code I am using: Here's my code: UIStoryboard* myStoryboard = self.storyboard; ScenarioPopOver*…
PruitIgoe
  • 6,166
  • 16
  • 70
  • 137
1
vote
1 answer

Issues using animateAlongsideTransition in presentationTransitionWillBegin

I'm trying to create a custom transition for a modally presented view controller using UIViewControllerTransitioningDelegate, UIViewControllerAnimatedTransitioning and UIPresentationController. In my presenting view controller I implement…
caryot
  • 251
  • 2
  • 5
1
vote
1 answer

Custom Modal Transition Dismiss Animation Runs Desynchronized

I've been working to implement a custom modal transition that uses a UIPresentationController subclass to create and manipulate an additional view during the presentation and dismissal. Apple helpfully provides an example of how to do this in the…
1
vote
1 answer

TransitioningDelegate doesn't work for UIPresentationController when separated to a custom class inherited from NSObject

I use custom UIPresentationController to perform sequel with my own animation. In prepareForSegue: myDestinationController.transitioningDelegate = DBViewControllerTransitioningDelegate() myDestinationController.modalPresentationStyle = .Custom This…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
1
vote
1 answer

Animate the presenting controller view while animating presented controller view

I have a view controller that on certain action presents another view controller that covers bottom half of the screen. When I animate the second view controller (presented view controller) from the bottom to cover the bottom half of the screen, I…
Shirish Kumar
  • 1,532
  • 17
  • 23
0
votes
1 answer

How to build a custom UIPresenterController to present view from right to left?

I want to build a custom UIPresenterController that present the subsequent UIViewController from the right side of the screen to the left. I have built out the following UIPresenterController; however, on present, this comes from the bottom of the…
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: Using multiple UIPresentationControllers

I have a modal presentation for a card that uses a custom presentation controller, which works fine. I now need to use a presentation controller for another popup, but the difficulty is that it needs to be different. I ran into multiple problems…
0
votes
0 answers

Pushing UIViewcontroller from a UIPanGesture

I'm attempting to push a UIViewcontroller from the right by panning it across the screen proportional to a UIPanGesture across the screen. Another way to say it is I want to push my UIViewcontoller on the Navigation Stack in the same way I am able…
0
votes
1 answer

iOS - How to pass down tap gesture without changing the underneath UIViewController?

I have two view controllers, B is presented on top of A, but not full screen. I am using a UIPresentationController to custom B's frame. What I want is, when tap on A, B is dismissed and A responds to it's own tap gesture. How to achieve this within…
ArgenBarbie
  • 571
  • 1
  • 4
  • 10