Created
February 19, 2017 03:20
-
-
Save ayunav/813cd6cb2d7dbccab7e12211bb2c9db2 to your computer and use it in GitHub Desktop.
Type properties on enums - Swift
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
| import Foundation | |
| enum MeetupAPI { | |
| // MARK: - Properties | |
| static let url = URL(string: "https://api.meetup.com/find/events?&sign=true&photo-host=public") | |
| static let session: URLSession = { | |
| let config = URLSessionConfiguration.default | |
| return URLSession(configuration: config) | |
| }() | |
| } | |
| print(MeetupAPI.url!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment