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 AsyncDisplayKit | |
final class NewChatViewController: ASViewController<ASDisplayNode>, ASTableDataSource, ASTableDelegate { | |
struct State { | |
var itemCount: Int | |
var fetchingMore: Bool | |
static let empty = State(itemCount: 0, fetchingMore: false) | |
} |
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
enum Language: String { | |
case ru = "ru" | |
case en = "en" | |
var collectionsUrlKey: String { | |
switch self { | |
case .ru: return "/versions/2/locals/ru/collections" | |
case .en: return "/versions/2/locals/en/collections" | |
} | |
} |
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
@IBOutlet weak var testGif: UIImageView! | |
testGif.kf.setImage(with: (URL(string: "https://media.giphy.com/media/3oxHQJ4XBS92dvXm92/giphy.gif")!)) |
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 | |
struct Post : Decodable { | |
var userId: Int = 1 | |
var id: Int | |
var title: String | |
var body: String | |
} | |