piper-app/Piper/Sources/UI/Extensions/SettingsItem+Properties.swift
Javier Cicchelli 58ac646e25 [App] Open settings (#5)
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>
2024-10-13 22:17:49 +00:00

28 lines
485 B
Swift

//
// SettingsItem+Properties.swift
// Piper ~ App
//
// Created by Javier Cicchelli on 13/10/2024.
// Copyright © 2024 Röck+Cöde. All rights reserved.
//
import SwiftUI
extension SettingsItem {
// MARK: Computed
var icon: String {
switch self {
case .repositories: "folder"
}
}
var title: LocalizedStringKey {
switch self {
case .repositories: "settings.tab-bar.repositories.text"
}
}
}