simple readme support in repos

This commit is contained in:
Ryan Nystrom
2017-09-10 21:08:59 -04:00
parent d6219f05e3
commit 17fb9ae7db
7 changed files with 284 additions and 43 deletions

View File

@@ -0,0 +1,31 @@
//
// RepositoryReadmeModel.swift
// Freetime
//
// Created by Ryan Nystrom on 9/10/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import Foundation
import IGListKit
final class RepositoryReadmeModel: ListDiffable {
let models: [ListDiffable]
init(models: [ListDiffable]) {
self.models = models
}
// MARK: ListDiffable
func diffIdentifier() -> NSObjectProtocol {
return "readme" as NSObjectProtocol
}
func isEqual(toDiffableObject object: ListDiffable?) -> Bool {
// for use w/ binding SC
return true
}
}