You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am currently considering to use this good library in my project to show user inbox email. So, in the Demo App, I'm trying to add a WKWebView as StackViewController item in place of UITextView but web view is not shown. This's modified setupStackViewController method:
import WKWebKit
....
fileprivate func setupStackViewController() {
let toFieldController = LabeledTextFieldController(labelText: "To:")
firstField = toFieldController.view
stackViewController.addItem(toFieldController)
stackViewController.addItem(LabeledTextFieldController(labelText: "Subject:"))
let webView = WKWebView()
webView.loadHTMLString("This field automatically expands as you type, no additional logic required", baseURL: nil)
webView.scrollView.isScrollEnabled = false
stackViewController.addItem(webView, canShowSeparator: false)
stackViewController.addItem(ImageAttachmentViewController())
}
Debug View Hierarchy tells me Scrollable content size is ambiguous.
What I'm doing wrong?
Thanks for your help,
Giorgio
The text was updated successfully, but these errors were encountered:
Sorry for the slow response. It looks like WKWebView has no intrinsic height. If you want it to become visible in the stack you'll need to manually set a height using something like webView.heightAnchor.constraint(equalToConstant: 200).isActive = true.
Closing this, feel free to re-open if the problem persists.
Hi,
I am currently considering to use this good library in my project to show user inbox email. So, in the Demo App, I'm trying to add a
WKWebView
asStackViewController
item in place ofUITextView
but web view is not shown. This's modifiedsetupStackViewController
method:Debug View Hierarchy tells me Scrollable content size is ambiguous.
What I'm doing wrong?
Thanks for your help,
Giorgio
The text was updated successfully, but these errors were encountered: