Created
September 2, 2016 19:40
-
-
Save DreamingInBinary/6361ec6f4889541aeecbd1e16b0d0d1e to your computer and use it in GitHub Desktop.
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
// | |
// 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