Files
GitHawk/Classes/Issues/Labels/IssueLabelStatusModel.swift
Ryan Nystrom e56c29a9a6 Redesigned Issues interface (#1983)
* 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
2018-07-27 11:03:09 -04:00

36 lines
841 B
Swift

//
// IssueLabelStatusModel.swift
// Freetime
//
// Created by Ryan Nystrom on 7/26/18.
// Copyright © 2018 Ryan Nystrom. All rights reserved.
//
import Foundation
import IGListKit
final class IssueLabelStatusModel: NSObject, ListDiffable {
let status: IssueStatus
let pullRequest: Bool
init(status: IssueStatus, pullRequest: Bool) {
self.status = status
self.pullRequest = pullRequest
}
// MARK: ListDiffable
func diffIdentifier() -> NSObjectProtocol {
return "status" as NSObjectProtocol
}
func isEqual(toDiffableObject object: ListDiffable?) -> Bool {
if self === object { return true }
guard let object = object as? IssueLabelStatusModel else { return false }
return status == object.status
&& pullRequest == object.pullRequest
}
}