mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-26 14:47:11 +08:00
22 lines
457 B
Swift
22 lines
457 B
Swift
//
|
|
// SegmentedControlModel+Notifications.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 7/6/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension SegmentedControlModel {
|
|
|
|
static func forNotifications() -> SegmentedControlModel {
|
|
return SegmentedControlModel(items: [Strings.unread, Strings.all])
|
|
}
|
|
|
|
var unreadSelected: Bool {
|
|
return items[selectedIndex] == Strings.unread
|
|
}
|
|
|
|
}
|