Unwrapping Optionals in Swift


Here is an example of passing


Unwrapping Optionals
Passing an optional dictionary to a function

    private static func flickrURL(endPoint: EndPoint, parameters: [String:String]?) -> URL {
              var components = URLComponents(string: baseURLString)!
              var queryItems = [URLQueryItem]()
              if let additionalParams = parameters {
                  for (key, value) in additionalParams{
                      let item = URLQueryItem(name: key, value: value)

The Big Nerd Ranch Guide chapter 20


Write more notes here