Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.
Beat edited this page Apr 3, 2016 · 1 revision

Why do I have a bundle to instantiate an instance of Typesetter, shouldn't the lib be able to infer this?

The reason for this is that Interface Builder uses another main bundle than the code running the app. By requiring the bundle, the lib makes sure that the color definition files can be loaded for Interface Builder as well.

Is there a performance penalty for instantiating Typesetter multiple times?

In short, no. Typesetter caches loaded definition files, so only the first instance loads the file. There is also a performance regression test to make sure this stays this way.