I'm trying to snapshot a UIView in my Swift iOS application, specifically a WKWebView. However, the snapshot is currently returning nil. According to the documentation, this seems to be expected since the method returns an optional. What are the circumstances that the snapshot returns nil?