Swift + Strings Organization and Good Practices

  • Organization - Using LocalizableStrings you will keep your code clean;
  • Scalability - While your app grows, you will be thankful for keeping your strings in a single place;
  • LoginStrings.strings (Give it a good name)
  • LoginAccessibilityStrings.strings (Awful name isn’t it?)
LoginStrings.strings
LoginAccessibilityStrings.strings
  • LoginStrings.swift
  • LoginAccessibilityStrings.swift
  • FeatureKind.swift
LoginStrings.swift
LoginAccessibilityStrings.swift
FeatureKind.swift

iOS Developer

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

Recommended from Medium

Problems you may encounter when developing an iOS app. Part 2

iOS Passwordless Chat Application with Auth0

Format On Save — Xcode / Swift

24 Swift Extensions for Cleaner Code

SwiftUI — First Impressions and a Quick Tip for Changing Placeholder Text Color

Choose Your iOS Dependencies Wisely

RxJava: blockingMostRecent, blockingGet, and leaked streams

SwiftUI State Management Fundamentals

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
Pericles Terto

Pericles Terto

iOS Developer

More from Medium

Kintsugi: Automatically Solving Git Conflicts in Xcode Project Files

A graph depiciting how Kintsugi resolves merge conflicts.

iOS testing — 4 crossroads technique — Part 1

Use async URLSession with server-side Swift

The Solid principles — form an iOS Developers point of view