Skip to content

Commit

Permalink
Add precondition to give more info before crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlaunchaMan committed Nov 24, 2020
1 parent 7de16cb commit 324d152
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SheetPresentationController.swift
Expand Up @@ -54,6 +54,8 @@ class SheetPresentationController: UIPresentationController {
let view = PassthroughView()
view.backgroundColor = .clear

precondition(presentingViewController.view != nil)

view.passthroughViews = [presentingViewController.view]

return view
Expand Down

0 comments on commit 324d152

Please sign in to comment.