iOS 10 changes snapshotView to return an optional. In some cases, like when the view being snapshotted has been removed from the screen, the snapshot will be nil. Since we expect it to always be non-nil, it will crash on iOS 10 beta, but work fine on iOS 9.
This wraps the snapshot method to return an optional, which we can remove when building against iOS 10 SDK.
iOS 10 changes snapshotView to return an optional. In some cases, like when the view being snapshotted has been removed from the screen, the snapshot will be nil. Since we expect it to always be non-nil, it will crash on iOS 10 beta, but work fine on iOS 9.
This wraps the snapshot method to return an optional, which we can remove when building against iOS 10 SDK.