Take your app around the world with smarter, simpler code
Localization is one of those topics that never seems to get in-depth coverage: most developers largely ignore the topic, and others don’t even know how it works.
@IBInspectableto localize UIKit components in IB.
I’ve written similar code for localizing UIKit components, but his enum approach is brilliant in its simplicity. Of course, if Xcode actually had codegen for strings this wouldn’t be a problem, but until then I suggest you check out his article. Don't worry if you're completely new to localization – Marco gives you just enough at the beginning to help you get started, so there really is no excuse for not trying it.
SPONSORED From August 2nd to 8th you can join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer!
Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and a speaker at Swift events around the world. If you're curious you can learn more here.
Link copied to your pasteboard.