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
import Foundation | |
import Alamofire | |
struct Photo: Codable { | |
let albumID: Int? | |
let id: Int? | |
let title: String? | |
let url: String? | |
let thumbnailURL: String? | |
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
import UIKit | |
import SDWebImage | |
class ViewController: UIViewController { | |
// MARK: - Outlet | |
@IBOutlet weak var headerImageView: UIImageView! | |
@IBOutlet weak var titleLabel: UILabel! | |
@IBOutlet weak var subtitleLabel: UILabel! | |
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
import Foundation | |
import Alamofire | |
struct DataService { | |
// MARK: - Singleton | |
static let shared = DataService() | |
// MARK: - URL | |
private var photoUrl = "https://jsonplaceholder.typicode.com/photos" |
NewerOlder