Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Created July 7, 2020 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beyarz/73cd8f8219b8d66d41ed31001a61720e to your computer and use it in GitHub Desktop.
Save Beyarz/73cd8f8219b8d66d41ed31001a61720e to your computer and use it in GitHub Desktop.
Swift Enums
enum Scope {
case email
case fullName
}
class AuthRequest {
var requestedScopes: [Scope] = []
}
var request = AuthRequest()
request.requestedScopes = [.fullName, .email]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment