mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-10 07:13:28 +01:00
Files
23 lines
484 B
Swift
23 lines
484 B
Swift
//
|
|||
// NavigationTab.swift
|
|||
// SideStoreUI
|
|||
//
|
|||
// Created by Fabian Thies on 18.11.22.
|
|||
// Copyright © 2022 Fabian Thies. All rights reserved.
|
|||
//
|
|||
|
|||
import Foundation
|
|||
import SFSafeSymbols
|
|||
|
|||
protocol NavigationTab: RawRepresentable, Identifiable, CaseIterable, Hashable where RawValue == Int {
|
|||
static var defaultTab: Self { get }
|
|||
var displaySymbol: SFSymbol { get }
|
|||
var displayName: String { get }
|
|||
}
|
|||
|
|||
extension NavigationTab {
|
|||
var id: Int {
|
|||
self.rawValue
|
|||
}
|
|||
}
|