Created
December 15, 2016 08:18
-
-
Save Otbivnoe/5f75428e5f99cbceb0548ccb6b1968b4 to your computer and use it in GitHub Desktop.
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 characters
extension RawRepresentable { | |
init?(value: Self.RawValue?) { | |
if let value = value { | |
self.init(rawValue: value) | |
} | |
else { | |
return nil | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment