mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-03-30 23:20:27 +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
24 lines
455 B
Swift
24 lines
455 B
Swift
//
|
|
// String+ListSwift.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 4/21/18.
|
|
// Copyright © 2018 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import IGListKit
|
|
|
|
extension String: ListSwiftDiffable {
|
|
|
|
public var identifier: String {
|
|
return self
|
|
}
|
|
|
|
public func isEqual(to object: ListSwiftDiffable) -> Bool {
|
|
guard let object = object as? String else { return false }
|
|
return self == object
|
|
}
|
|
|
|
}
|