Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit adec8de
Author: Joe Kribs <jpkribs@outlook.com>
Date:   Thu Jan 2 16:05:15 2025 -0700

    [Meta] 2025 Disclaimer (#1381)
  • Loading branch information
JPKribs committed Jan 3, 2025
1 parent 0de28d5 commit 3839226
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions Swiftfin tvOS/Views/HomeView/HomeErrorView.swift
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)
// }
// }
// }

0 comments on commit 3839226

Please sign in to comment.