How to handle caching expensive views?

One of the views in my app is expensive to render – it’s an svg view and the user can add an arbitrary number of elements to it, and there are more than one of them. So I need to persist them.

It looks from this issue as though eventually ContainerView may be changed to not destroy its currentView; however currently I’m not sure how to accomplish this.

2 Likes