mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-15 01:59:07 +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
23 lines
369 B
Swift
23 lines
369 B
Swift
//
|
|
// InboxType.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 6/16/18.
|
|
// Copyright © 2018 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum InboxType {
|
|
case unread
|
|
case repo(Repository)
|
|
case all
|
|
|
|
var showAll: Bool {
|
|
switch self {
|
|
case .all, .repo: return true
|
|
case .unread: return false
|
|
}
|
|
}
|
|
}
|