mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-12 17:48:11 +08:00
simple readme support in repos
This commit is contained in:
31
Classes/Repository/RepositoryReadmeModel.swift
Normal file
31
Classes/Repository/RepositoryReadmeModel.swift
Normal 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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user