This repository has been archived by the owner on Mar 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
popoverPresentationController is always nil in iOS 11 #204
Comments
I found a workaround, though it seems strange - I noticed that the presentedViewController's Updating my spec to this got the test to pass.
Inside the PCK method |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, and thanks for making an awesome tool! I'm running Cedar with PCK, and I'm trying to pin down an issue I had when running my specs on iOS 11. When running my specs on iOS 11, all the tests related a "presentedViewController's" "popoverPresentationController" started failing.
Here is a test that passes on iOS 10.3, and fails on iOS 11.
ViewControllerSpec.mm
ViewController.h
ViewController.m
Everything seems to work fine when running the actual app, meaning
self.presentedViewController.popoverPresentationController
is a real instance. This is only an issue in specs.Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: