I am avoiding it as follows.
let viewController = TWTRComposerViewController(initialText: "long text... ", image: nil, videoData: nil)
present(viewController, animated: true) {
if let textView = viewController.view!.subviews.first!.subviews.first!.subviews.first!.subviews.first!.subviews.first!.subviews.first!.subviews[1].subviews[1] as? UITextView,
let scrollView = viewController.view!.subviews.first!.subviews.first!.subviews.first!.subviews.first!.subviews.first! as? UIScrollView {
viewController.view.clipsToBounds = false
textView.font = UIFont.systemFont(ofSize: 17)
textView.sizeToFit()
scrollView.contentSize = textView.frame.size
scrollView.setNeedsUpdateConstraints()
}
}
This is not a good method.
It takes time for scrolling to be possible.
Perhaps it will only work with this version.