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

Commit

Permalink
Make both push back case studies use a light status bar in the modal …
Browse files Browse the repository at this point in the history
…view.

Summary: This helps test that UIKit animations are happening alongside material motion transitions.

Reviewers: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, markwei

Reviewed By: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, markwei

Tags: #material_motion

Differential Revision: http://codereview.cc/D3095
  • Loading branch information
jverkoey committed Apr 24, 2017
1 parent 9fa2b22 commit eaecd86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/InteractivePushBackTransitionExample.swift
Expand Up @@ -64,6 +64,10 @@ private class ModalViewController: UIViewController, UIGestureRecognizerDelegate
scrollView.panGestureRecognizer.require(toFail: pan)
view.addGestureRecognizer(pan)
}

override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}

private class PushBackTransition: Transition {
Expand Down
4 changes: 4 additions & 0 deletions examples/PushBackTransitionExample.swift
Expand Up @@ -59,6 +59,10 @@ private class ModalViewController: UIViewController {
func didTap() {
dismiss(animated: true)
}

override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}

private class PushBackTransition: Transition {
Expand Down

0 comments on commit eaecd86

Please sign in to comment.