Skip to content

Nested Nibs, Speed of instantiateWithOwner #26

Description

@semireg

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. :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions