Skip to content

[Question] Wait for TextView to finish loading all images? #1197

Open
@flamefury

Description

@flamefury

I'm currently using the TextView as a way to display HTML content in my app, so no editing.

I have a commenting section underneath the TextView to which I want to auto-scroll to under certain circumstances (eg, scroll to a reply on a comment). This can occur right after the view controller finishes loading and setting up, but before all images in the TextView have finished downloading.

The result is that occasionally the scroll is triggered too soon, resulting in scrolling to the commenting section, but then the images finish loading, changing the height of the TextView and moving the comment section away from where I wanted to display it.

Is there a way I can listen for when all media content in the TextView has finished downloading so that I can perform my auto scrolling afterwards?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions