Rename ModalTransition to VerticalSheetTransition and add presentation controller support.
ClosedPublic

Authored by featherless on Tue, May 16, 3:06 PM.

Details

Summary

The new implementation makes use of a presentation controller to allow clients to customize the presented view controller's frame. When a custom frame is provided, the transition will show a dimmed scrim behind the presented view controller that can be tapped in order to dismiss the view controller.

We will likely need to explore APIs for customizing the tap-to-dismiss behavior. For example, modal dialogs that require confirmation may not have a cancelable action and therefor shouldn't be dismissable with a tap on the scrim.

Diff Detail

Repository
R50 material-motion-components-swift
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
featherless created this revision.Tue, May 16, 3:06 PM
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptTue, May 16, 3:06 PM
Restricted Application added a project: Material Motion. · View Herald Transcript
Restricted Application added a reviewer: O4: Material Apple platform reviewers. · View Herald Transcript
Restricted Application added a reviewer: Material Motion. · View Herald Transcript
Restricted Application completed building Restricted Buildable.Tue, May 16, 3:06 PM
This revision is now accepted and ready to land.Tue, May 16, 3:27 PM
markwei accepted this revision.Tue, May 16, 4:16 PM
This revision was automatically updated to reflect the committed changes.