Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
[iOS] Fix UI Tests (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 authored Feb 8, 2024
1 parent 49307af commit 0a1eb8c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ struct UITextViewWrapper: UIViewRepresentable {
textStorage.addLayoutManager(layoutManager)
layoutManager.addTextContainer(textContainer)
let textView = WysiwygTextView(frame: .zero, textContainer: textContainer)
// Assign the textView to the view model ASAP
viewModel.textView = textView
textView.accessibilityIdentifier = "WysiwygComposer"
textView.font = UIFont.preferredFont(forTextStyle: .body)
textView.autocapitalizationType = .sentences
Expand All @@ -144,7 +146,6 @@ struct UITextViewWrapper: UIViewRepresentable {
textView.clipsToBounds = false
textView.tintColor = UIColor.tintColor
textView.wysiwygDelegate = context.coordinator
viewModel.textView = textView
viewModel.updateCompressedHeightIfNeeded()
return textView
}
Expand Down

0 comments on commit 0a1eb8c

Please sign in to comment.