Created
April 27, 2020 20:26
-
-
Save dimpiax/ec466914c84fbdddc539365a5030bace to your computer and use it in GitHub Desktop.
Revisions
-
dimpiax created this gist
Apr 27, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ @propertyWrapper struct Localized<T: Localizable> { private let key: LocalizationKey var wrappedValue: T? = nil { didSet { wrappedValue?.set(localization: key) } } init(_ key: LocalizationKey) { self.key = key } }