Skip to content

Instantly share code, notes, and snippets.

@lahariganti
Last active March 26, 2021 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lahariganti/efd17d43f3dac97ec1771ada57bfcfb2 to your computer and use it in GitHub Desktop.
Save lahariganti/efd17d43f3dac97ec1771ada57bfcfb2 to your computer and use it in GitHub Desktop.
@IBDesignable final class UILocalizedLabel: UILabel {
@IBInspectable var tableName: String? {
didSet {
guard let tableName = tableName else { return }
text = text?.localized(tableName: tableName)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment