Quantcast
Channel: Setting long String to UILabel Freezing my app with undetected error - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by PGDev for Setting long String to UILabel Freezing my app with undetected error

$
0
0

Try using DispatchQueue.main.async without any delay, i.e.

DispatchQueue.main.async {[weak self] in
    self?.contentLabel.text = text
}

The above code is working perfectly fine for any length text.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>