mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-13 01:51:40 +08:00
22 lines
473 B
Swift
22 lines
473 B
Swift
//
|
|
// IssueStatusEvent+ButtonState.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 7/3/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension IssueStatusEvent {
|
|
var buttonState: UIButton.State {
|
|
switch self {
|
|
case .closed: return .closed
|
|
case .reopened: return .open
|
|
case .merged: return .merged
|
|
case .locked: return .locked
|
|
case .unlocked: return .unlocked
|
|
}
|
|
}
|
|
}
|