Files
GitHawk/Classes/Issues/IssueStatus+ButtonState.swift
Ryan Nystrom b489e8db97 Local push notifications (#2145)
* add fmdb

* add local notification cache mechanism

* rewiring to update local db when fetching notifications

* local pushes working

* building for xcode 10
2018-09-22 14:40:35 -04:00

20 lines
386 B
Swift

//
// IssueStatus+ButtonState.swift
// Freetime
//
// Created by Ryan Nystrom on 7/3/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import Foundation
extension IssueStatus {
var buttonState: UIButton.IssueState {
switch self {
case .closed: return .closed
case .open: return .open
case .merged: return .merged
}
}
}