presentation-displays
presentation-displays copied to clipboard
IOS displayManager.showSecondaryDisplay Error
Describe the bug presentation_displays/SwiftPresentationDisplaysPlugin.swift:119: Fatal error: Unexpectedly found nil while unwrapping an Optional value presentation_displays/SwiftPresentationDisplaysPlugin.swift:119: Fatal error: Unexpectedly found nil while unwrapping an Optional value
- thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value frame #0: 0x0000000185c68d7c libswiftCore.dylib`_swift_runtime_on_report
To Reproduce Steps to reproduce the behavior: Get Displays into displays Array. run displayManager.showSecondaryDisplay(displayId: displays[1].displayId, routerName: "presentation"); App crashes and error is displayed.
I have tried setting display[1].rotation and .flag to 1
Expected behavior Something to show in secondary screen.
Smartphone (please complete the following information):
- Device: Iphone 11pro
Additional context Second screen is already mirroring.
@caseplugins: I encountered the same issue today and I fixed in this PR: https://github.com/VNAPNIC/presentation-displays/pull/25. Hopefully the reviewers approved soon. In the meantime you can checkout to my branch.
@caseplugins @fbernaly resolved in version 0.2.3
@fbernaly @VNAPNIC Thanks! Got it to work. I would add to the documentation that you need to adjust the AppDelegate.swift file for an already existing project