This file contains hidden or 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
| // | |
| // CollectionDataSource.swift | |
| // VirtualTourist | |
| // | |
| // Created by Ramiz on 10/12/2019. | |
| // Copyright © 2019 RR Inc. All rights reserved. | |
| // | |
| import Foundation | |
| import CoreData |
This file contains hidden or 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
| // | |
| // ListDataSource.swift | |
| // Mooskine | |
| // | |
| // Created by Ramiz on 07/12/2019. | |
| // | |
| import Foundation | |
| import CoreData | |
| import UIKit |
This file contains hidden or 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 | |
| class AppClient { | |
| struct Auth { | |
| static var key = "YOUR_API_KEY" | |
| } | |
| enum Endpoint { | |
| static let baseUrl = "https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=\(Auth.key)" | |
| case base |
This file contains hidden or 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 PlaygroundSupport | |
| PlaygroundPage.current.needsIndefiniteExecution = true | |
| let flickerPhotos = """ | |
| {"photos":{ | |
| "page":1, | |
| "pages":1, | |
| "perpage":250, | |
| "total":"36", |
This file contains hidden or 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
| // | |
| // MyUICollectionView.swift | |
| // VirtualTourist | |
| // | |
| // Created by Apple on 10/12/2019. | |
| // Copyright © 2019 RR Inc. All rights reserved. | |
| // | |
| import Foundation | |
| import UIKit |