Implemented the LoadingView component for the Browse module.
This commit is contained in:
parent
58a73fa637
commit
3d21e0f78a
@ -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";
|
||||
|
35
Modules/Sources/Browse/UI/Components/LoadingView.swift
Normal file
35
Modules/Sources/Browse/UI/Components/LoadingView.swift
Normal 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()
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user