Quantcast
Channel: User Burhanuddin Sunelwala - Stack Overflow
Viewing all articles
Browse latest Browse all 36

Comment by Burhanuddin Sunelwala on Hanging (Freezing) issue UISemanticContentAttribute = .ForceRightToLeft

$
0
0
The issue was that are too many views in the app. there are many internal views from the iOS framework itself. For example, if you initialize a UISearchBar, the UISearchBar itself have a UITextField, a UILabel, a Cancel Button, a Clear Button, a background view and etc. Therefore, it was taking time to switch each and every view from LTR to RTL. Solution: I created an extension for UIView, and added an IBDesignable attribute - a Bool. So, when ever I create a UIView in a .xib file, I just check this property so it will only switch this particular view and not each and every view inside it.

Viewing all articles
Browse latest Browse all 36

Trending Articles