Skip to content

Instantly share code, notes, and snippets.

@drrost
Last active October 15, 2019 08:09
Show Gist options
  • Save drrost/e4dc678d24cf334be623df4176b07d9d to your computer and use it in GitHub Desktop.
Save drrost/e4dc678d24cf334be623df4176b07d9d to your computer and use it in GitHub Desktop.
ViewController with library call import
import UIKit
import Networking // 1
class ViewController: UIViewController {
let authService = AuthenticationService() // 2
override func viewDidLoad() {
super.viewDidLoad()
let token = authService.login("user", "S7eo#0-2K&b") // 3
print("token: \(token)") // 4
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment