| Github | https://github.com/Nik-MS |
| Github | https://github.com/Nik-MS |
I've always wanted to learn how *measure* a problem in my codebase. In my case, we all know Objc bridging is slow because Apple says so but can you prove it? I'm shifting through the build summary on a sample project and notice that the “Emit Swift Module" task is longer when you subclass NSObject in Swift, but is that evidence enough? Is there somewhere more obvious in the Build timeline that says “hey bridging takes exactly this long.”
In case anyone needs this: When using Xcode String Catalogs for localization, you can also include variations for plurality. Say, if you want to say “{1} book” or “{20} books”.
I spent too long 🤦‍♂️ trying to localize a string that has multiple integer arguments. If you're seeing your localizations outputting random🍑 numbers, your probs need to specify the correct argument. You do this using a positional modifier, %n$lld where n specifies which argument. #swift #iosdev #BuildInPublic