mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-13 17:25:52 +08:00
* New Inbox design * rename ident to number * use ax animation * building with old notifications removed * remove "2" suffix * use latest IGLK+Swift * apply IGLK perf fixes * fix build * Update with IGLK binding bug fix
30 lines
598 B
Swift
30 lines
598 B
Swift
//
|
|
// MilestoneViewModel.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 6/3/18.
|
|
// Copyright © 2018 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import IGListKit
|
|
|
|
struct MilestoneViewModel: ListSwiftDiffable {
|
|
let title: String
|
|
let due: String
|
|
let selected: Bool
|
|
|
|
// MARK: ListSwiftDiffable
|
|
|
|
var identifier: String {
|
|
return title
|
|
}
|
|
|
|
func isEqual(to value: ListSwiftDiffable) -> Bool {
|
|
guard let value = value as? MilestoneViewModel else { return false }
|
|
return due == value.due
|
|
&& selected == value.selected
|
|
}
|
|
|
|
}
|