This PR contains the work done to open the *Settings* view and also, implemented the rendering of its tab items. Reviewed-on: #5 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
36 lines
529 B
Swift
36 lines
529 B
Swift
//
|
|
// SettingsItem.swift
|
|
// Piper ~ App
|
|
//
|
|
// Created by Javier Cicchelli on 13/10/2024.
|
|
// Copyright © 2024 Röck+Cöde. All rights reserved.
|
|
//
|
|
|
|
enum SettingsItem: Int, Hashable {
|
|
case repositories = 0
|
|
}
|
|
|
|
// MARK: - CaseIterable
|
|
|
|
extension SettingsItem: CaseIterable {
|
|
|
|
// MARK: Computed
|
|
|
|
var allCases: [SettingsItem] {
|
|
[.repositories]
|
|
}
|
|
|
|
}
|
|
|
|
// MARK: - Identifiable
|
|
|
|
extension SettingsItem: Identifiable {
|
|
|
|
// MARK: Computed
|
|
|
|
var id: Int {
|
|
rawValue
|
|
}
|
|
|
|
}
|