Implemented the "tabSelected" and "tabs" properties for the SettingsViewModel view model in the app target.
This commit is contained in:
parent
da37cf60e6
commit
863f681078
20
Piper/Sources/Logic/ViewModels/SettingsViewModel.swift
Normal file
20
Piper/Sources/Logic/ViewModels/SettingsViewModel.swift
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
//
|
||||||
|
// SettingsViewModel.swift
|
||||||
|
// Piper ~ App
|
||||||
|
//
|
||||||
|
// Created by Javier Cicchelli on 13/10/2024.
|
||||||
|
// Copyright © 2024 Röck+Cöde. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Observation
|
||||||
|
|
||||||
|
@Observable
|
||||||
|
final class SettingsViewModel {
|
||||||
|
|
||||||
|
// MARK: Properties
|
||||||
|
|
||||||
|
var tabSelected: SettingsItem = .repositories
|
||||||
|
|
||||||
|
let tabs: [SettingsItem] = SettingsItem.allCases
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user