Created
July 7, 2020 19:32
-
-
Save Beyarz/73cd8f8219b8d66d41ed31001a61720e to your computer and use it in GitHub Desktop.
Swift Enums
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
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