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>
27 lines
573 B
Swift
27 lines
573 B
Swift
//
|
|
// ModelContainer+Constants.swift
|
|
// Piper ~ App
|
|
//
|
|
// Created by Javier Cicchelli on 06/10/2024.
|
|
// Copyright © 2024 Röck+Cöde. All rights reserved.
|
|
//
|
|
|
|
import SwiftData
|
|
|
|
extension ModelContainer {
|
|
|
|
// MARK: Constants
|
|
|
|
static let preview: ModelContainer = {
|
|
do {
|
|
return try ModelContainer(
|
|
for: .entities,
|
|
configurations: ModelConfiguration(isStoredInMemoryOnly: true)
|
|
)
|
|
} catch {
|
|
fatalError("Model Container should have been created.")
|
|
}
|
|
}()
|
|
|
|
}
|