mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-12 00:14:44 +08:00
* clean up title model * update title style * organize issue SC method * remove background colors from styled text in issues * collection view bg white * remove card inset and clean up snap superview code * clean up label design * thread is root and change base font size * remove borders on comment cells * adjust collapse design * adjust comment line spacing and make non-root body smaller * refactor detail view * viewer header background color * more buttons in reaction cell * vertical spacers working * design basically finished; * scroll to bottom accounts for inset * PR review background color white * fixup PR review comments * spacing on merge and review * readme background white * rename to just "spacer" * horizontal spacing * fix tests
40 lines
794 B
Swift
40 lines
794 B
Swift
//
|
|
// IssueLabelsModel.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 5/20/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import IGListKit
|
|
|
|
final class IssueLabelsModel: ListDiffable {
|
|
|
|
let status: IssueLabelStatusModel
|
|
let locked: Bool
|
|
let labels: [RepositoryLabel]
|
|
|
|
init(
|
|
status: IssueLabelStatusModel,
|
|
locked: Bool,
|
|
labels: [RepositoryLabel]
|
|
) {
|
|
self.status = status
|
|
self.locked = locked
|
|
self.labels = labels
|
|
}
|
|
|
|
// MARK: ListDiffable
|
|
|
|
func diffIdentifier() -> NSObjectProtocol {
|
|
// hardcoded b/c one per list
|
|
return "labels" as NSObjectProtocol
|
|
}
|
|
|
|
func isEqual(toDiffableObject object: ListDiffable?) -> Bool {
|
|
return true
|
|
}
|
|
|
|
}
|