Skip to content

Instantly share code, notes, and snippets.

@DreamingInBinary
Created September 2, 2016 19:40
Show Gist options
  • Save DreamingInBinary/6361ec6f4889541aeecbd1e16b0d0d1e to your computer and use it in GitHub Desktop.
Save DreamingInBinary/6361ec6f4889541aeecbd1e16b0d0d1e to your computer and use it in GitHub Desktop.
//
// ViewController.swift
// The Unofficial IGN App
//
// Created by Jordan Morgan on 8/21/16.
// Copyright © 2016 Dreaming In Binary, LLC. All rights reserved.
//
import UIKit
class ViewController: UIViewController
{
override func viewDidLoad()
{
super.viewDidLoad()
let ignAPI = IGNNetworking()
ignAPI.getLatestArticles() { articles, error in
guard error == nil else
{
//Show error.message, I have an extension here to localize the message
return
}
print(articles)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment