Advanced Localization Technique for Enums in iOS development

The Technique — Protocol based localization

Notice that we are managing all the Localization functionality in one place, applying the Dry Principle.
Since the enum conforms to String, we need each case to have a string value, Localizable uses it as Raw Value

A foundation to build on

--

--

--

Software Entrepreneur

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

UINavigation Controller and UINavigationBar in Swift

Quick RealityKit Tutorial: Programmatic non-AR Setup

Using Diffable Data Source iOS 13 API in UITableView

Swift Concurrency

6 Reasons Why It’s Never Been Easier To Make Your Own iOS App

Design Part- 4| LeetCode

Working with WKWebview

How much did I earn from my 1st iOS app?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andy Nadal

Andy Nadal

Software Entrepreneur

More from Medium

Implementing Game Controller for iOS or Mac app

Swift Concurrency

Crowdin CDN— streamline the localization process (iOS)

From ObjC → Swift → ObjC: Part 1