-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit adec8de Author: Joe Kribs <jpkribs@outlook.com> Date: Thu Jan 2 16:05:15 2025 -0700 [Meta] 2025 Disclaimer (#1381)
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// | ||
// Swiftfin is subject to the terms of the Mozilla Public | ||
// License, v2.0. If a copy of the MPL was not distributed with this | ||
// file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
// | ||
// Copyright (c) 2025 Jellyfin & Jellyfin Contributors | ||
// | ||
|
||
import SwiftUI | ||
|
||
// TODO: make general `ErrorView` like iOS | ||
|
||
#warning("TODO: implement") | ||
|
||
extension HomeView { | ||
|
||
struct ErrorView: View { | ||
|
||
@ObservedObject | ||
var viewModel: HomeViewModel | ||
|
||
var body: some View { | ||
Text("TODO") | ||
} | ||
} | ||
} | ||
|
||
// extension HomeView { | ||
// | ||
// struct ErrorView: View { | ||
// | ||
// @ObservedObject | ||
// var viewModel: HomeViewModel | ||
// | ||
// let errorMessage: ErrorMessage | ||
// | ||
// var body: some View { | ||
// VStack { | ||
// if viewModel.isLoading { | ||
// ProgressView() | ||
// .frame(width: 100, height: 100) | ||
// .scaleEffect(2) | ||
// } else { | ||
// Image(systemName: "xmark.circle.fill") | ||
// .font(.system(size: 72)) | ||
// .foregroundColor(Color.red) | ||
// .frame(width: 100, height: 100) | ||
// } | ||
// | ||
//// Text("\(errorMessage.code)") | ||
// | ||
// Text(errorMessage.message) | ||
// .frame(minWidth: 50, maxWidth: 240) | ||
// .multilineTextAlignment(.center) | ||
// | ||
// Button { | ||
//// viewModel.refresh() | ||
// } label: { | ||
// L10n.retry.text | ||
// .bold() | ||
// .font(.callout) | ||
// .frame(width: 400, height: 75) | ||
// .background(Color.jellyfinPurple) | ||
// } | ||
// .buttonStyle(.card) | ||
// } | ||
// .offset(y: -50) | ||
// } | ||
// } | ||
// } |