Skip to content

Commit

Permalink
Make Popovers return a new popover model if none were found
Browse files Browse the repository at this point in the history
  • Loading branch information
aheze committed Apr 24, 2022
1 parent e83613b commit 7cccf51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/PopoverWindows.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ extension UIResponder {
return viewController.view.popoverModel
}

fatalError("[Popovers] - No `PopoverModel` present in responder chain (\(self)) - has the source view been installed into a window?")
print("[Popovers] - No `PopoverModel` present in responder chain (\(self)) - has the source view been installed into a window? Please file a bug report (https://github.com/aheze/Popovers/issues).")

return PopoverModel()
}
}

Expand Down

0 comments on commit 7cccf51

Please sign in to comment.