Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Allow TransitionWithPresentation to return nil for conditional presen…
Browse files Browse the repository at this point in the history
…tation.

Summary: Returning nil means no presentation controller will be used.

Reviewers: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, randcode-generator

Reviewed By: randcode-generator

Tags: #material_motion

Differential Revision: http://codereview.cc/D3229
  • Loading branch information
Jeff Verkoeyen committed May 16, 2017
1 parent 12acff9 commit 5a6570a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transitions/Transition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ public protocol TransitionWithPresentation: Transition {

The returned presentation controller may choose to conform to WillBeginTransition in order to
associate reactive motion with the transition.

If nil is returned then no presentation controller will be used.
*/
func presentationController(forPresented presented: UIViewController,
presenting: UIViewController?,
source: UIViewController) -> UIPresentationController
source: UIViewController) -> UIPresentationController?
}

/**
Expand Down

0 comments on commit 5a6570a

Please sign in to comment.