1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

Fix for missing bottom half of a note

Strange fix, but by increasing the height of a UiTextView past the size
of any legitimate content, then re-sizes back to the correct size
displaying the full content.

Changelog-Fixed: Fixed disappearing text on iOS17
This commit is contained in:
cr0bar 2023-08-02 22:26:30 +01:00 committed by William Casarin
parent b556257edd
commit 39dce64131

View File

@ -29,6 +29,7 @@ struct SelectableText: View {
.padding([.leading, .trailing], -1.0)
.onAppear {
self.selectedTextWidth = geo.size.width
self.selectedTextHeight = 100000.0
}
.onChange(of: geo.size) { newSize in
self.selectedTextWidth = newSize.width