Implemented the LoadingView component for the Browse module.

This commit is contained in:
Javier Cicchelli 2022-12-15 01:07:40 +01:00
parent 58a73fa637
commit 3d21e0f78a
2 changed files with 42 additions and 0 deletions

View File

@ -6,9 +6,16 @@
Copyright © 2022 Röck+Cöde. All rights reserved.
*/
// Loading
"loading.loading_data.text" = "Loading data\nfrom the API...";
// Browse
"browse.toolbar_item.menu.add_actions.text" = "Add file and/or folder";
"browse.toolbar_item.button.add_folder.text" = "Create a new folder";
"browse.toolbar_item.button.add_file.text" = "Upload a file";
"browse.toolbar_item.button.show_profile.text" = "Show profile";
"browse.swipe_action.delete_item.text" = "Delete item";
"browse.swipe_action.download_item.text" = "Download item";

View File

@ -0,0 +1,35 @@
//
// LoadingView.swift
// Browse
//
// Created by Javier Cicchelli on 15/12/2022.
// Copyright © 2022 Röck+Cöde. All rights reserved.
//
import SwiftUI
struct LoadingView: View {
var body: some View {
VStack(spacing: 24) {
ProgressView()
.controlSize(.large)
.tint(.red)
Text(
"loading.loading_data.text",
bundle: .module
)
.font(.body)
.fontWeight(.semibold)
}
.ignoresSafeArea()
}
}
// MARK: - Previews
struct LoadingView_Previews: PreviewProvider {
static var previews: some View {
LoadingView()
}
}