We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在iOS真机上,打开文件时会有一闪而过的黑屏,这个体验不是很好,建议增加个背景颜色
func openFile(filePath: String, webView: WKWebView) { let url = URL(fileURLWithPath: filePath) webView.backgroundColor = UIColor.white // 设置下背景颜色会好一些 if #available(iOS 9.0, *) { webView.loadFileURL(url, allowingReadAccessTo: url) } else { let request = URLRequest(url: url) webView.load(request) } }
The text was updated successfully, but these errors were encountered:
6
Sorry, something went wrong.
No branches or pull requests
在iOS真机上,打开文件时会有一闪而过的黑屏,这个体验不是很好,建议增加个背景颜色
The text was updated successfully, but these errors were encountered: