0

I have two ViewControllers.

  1. Presenting
  2. Presented -> can be FullScreen or FormSheet (depending whether it is running on compact or regular horizontal size class)

How can Presented controller detect, whether it is presented as a modal or FormSheet?

Richard Topchii
  • 7,075
  • 8
  • 48
  • 115

1 Answers1

0

Just check the modalPresentationStyle property of the UIViewController.

Richard Topchii
  • 7,075
  • 8
  • 48
  • 115