2019-03-05 22:31:03 +01:00
|
|
|
//
|
|
|
|
|
// SearchBarScope.swift
|
2021-08-28 07:32:31 +02:00
|
|
|
// passKit
|
2019-03-05 22:31:03 +01:00
|
|
|
//
|
|
|
|
|
// Created by Danny Moesch on 05.03.19.
|
|
|
|
|
// Copyright © 2019 Bob Sun. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
2019-05-01 18:28:22 +02:00
|
|
|
import SwiftyUserDefaults
|
|
|
|
|
|
2020-02-23 11:15:41 +01:00
|
|
|
public enum SearchBarScope: Int {
|
2019-03-05 22:31:03 +01:00
|
|
|
case current
|
|
|
|
|
case all
|
|
|
|
|
|
2019-05-01 18:28:22 +02:00
|
|
|
public var localizedName: String {
|
2019-03-05 22:31:03 +01:00
|
|
|
switch self {
|
|
|
|
|
case .current:
|
|
|
|
|
return "Current".localize()
|
|
|
|
|
case .all:
|
|
|
|
|
return "All".localize()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-02-23 11:15:41 +01:00
|
|
|
|
|
|
|
|
extension SearchBarScope: CaseIterable {}
|