Last active
May 3, 2016 13:18
-
-
Save davideme/4912df68b09a4114cfaca20e97a8003e to your computer and use it in GitHub Desktop.
Add square brackets syntax to AWSCognitoDataset
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
extension AWSCognitoDataset { | |
subscript(index: String) -> String { | |
get { | |
return self.stringForKey(index) | |
} | |
set(newValue) { | |
self.setString(newValue, forKey: index) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment