Skip to content

Instantly share code, notes, and snippets.

View arifinfrds's full-sized avatar

Arifin Firdaus arifinfrds

View GitHub Profile
@arifinfrds
arifinfrds / Photo.swift
Last active August 1, 2018 03:19
arifinfrds/iOS-MVVM-Alamofire/MVVM Alamofire/model/
import Foundation
import Alamofire
struct Photo: Codable {
let albumID: Int?
let id: Int?
let title: String?
let url: String?
let thumbnailURL: String?
@arifinfrds
arifinfrds / ViewController.swift
Created July 15, 2018 15:09
arifinfrds/iOS-MVCS-Alamofire/MVCS Alamofire/controller/ViewController.swift
import UIKit
import SDWebImage
class ViewController: UIViewController {
// MARK: - Outlet
@IBOutlet weak var headerImageView: UIImageView!
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var subtitleLabel: UILabel!
@arifinfrds
arifinfrds / DataService.swift
Created July 15, 2018 15:08
arifinfrds/iOS-MVCS-Alamofire/MVCS Alamofire/store/DataService.swift
import Foundation
import Alamofire
struct DataService {
// MARK: - Singleton
static let shared = DataService()
// MARK: - URL
private var photoUrl = "https://jsonplaceholder.typicode.com/photos"