I have a fairly complex view hierarchy in a UITableViewCell (among other things) that uses nested NibDesignables. On slower devices the load time is very noticeable. For example, with 2 NibDesignables each with 5 subviews that are NibDesignable, it takes approximately 2 seconds on the main thread. Profiler doesn't show a large CPU burden, though.
Thoughts? Are there any easy fixes to make this kind of hierarchy instantiate faster? If I can't fix this then I'm afraid I'll be forced back to writing all of my views/autolayout programmatically. :-(
I have a fairly complex view hierarchy in a UITableViewCell (among other things) that uses nested NibDesignables. On slower devices the load time is very noticeable. For example, with 2 NibDesignables each with 5 subviews that are NibDesignable, it takes approximately 2 seconds on the main thread. Profiler doesn't show a large CPU burden, though.
Thoughts? Are there any easy fixes to make this kind of hierarchy instantiate faster? If I can't fix this then I'm afraid I'll be forced back to writing all of my views/autolayout programmatically. :-(