Skip to content

Instantly share code, notes, and snippets.

@pavankataria
Last active January 15, 2016 09:30
Show Gist options
  • Save pavankataria/9648861f191c00ed40e9 to your computer and use it in GitHub Desktop.
Save pavankataria/9648861f191c00ed40e9 to your computer and use it in GitHub Desktop.
    class MyAppCantFunctionUnlessBothPropertiesAreBloodyPresent {
        var cloudId: String?
        var apnsToken: String?
        func pleaseJustSendThisShitToMyServerSoICanBeDoneWith() {
          guard let cloudId = self.cloudId, apnsToken = self.apnsToken else {
              print(“Sighs, nope not ready yet, we’re all probably waiting for that blaady apns token again")
              return
          }
          print(“what took you two so long? Let’s make that request to igors server now")
        }
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment