uxmstudio / UXMPDFKit

An iOS PDF viewer and annotator written in Swift that can be embedded into any application.
MIT License
274 stars 104 forks source link

Fix crash when setting 'showsScrubber' before view has loaded #64

Closed danielbyon closed 7 years ago

danielbyon commented 7 years ago

This was crashing for me when I was setting this value before pushing the view controller. This was because the view was not loaded, and pageScrubber is created in viewDidLoad(), so in the didSet we were attempting to access a nil value.

screen shot 2017-06-27 at 6 50 14 pm screen shot 2017-06-27 at 6 50 25 pm