Created
October 11, 2018 14:37
-
-
Save damijanracel/d761e8d5380fe16086f9ec13688d2f79 to your computer and use it in GitHub Desktop.
Localized label for struct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocalizedLabel: UILabel { | |
var localizationKey: LocalizationKey? | |
func set(key localization: Localization) { | |
self.text = localization.string | |
self.localizationKey = localization.key | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment