1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // EmptyTasksView.swift
- // Nextcloud
- //
- // Created by Milen on 16.04.24.
- // Copyright © 2024 Marino Faggiana. All rights reserved.
- //
- import SwiftUI
- struct NCAssistantEmptyView: View {
- @EnvironmentObject var model: NCAssistantTask
- let titleKey, subtitleKey: String
- var body: some View {
- VStack {
- Image(systemName: "sparkles")
- .renderingMode(.template)
- .resizable()
- .aspectRatio(contentMode: .fit)
- .foregroundStyle(Color(NCBrandColor.shared.getElement(account: model.controller?.account)))
- .font(Font.system(.body).weight(.light))
- .frame(height: 100)
- Text(NSLocalizedString(titleKey, comment: ""))
- .font(.system(size: 22, weight: .bold))
- .padding(.bottom, 5)
- Text(NSLocalizedString(subtitleKey, comment: ""))
- .font(.system(size: 14))
- .foregroundStyle(.secondary)
- }
- }
- }
- #Preview {
- NCAssistantEmptyView(titleKey: "_no_tasks_", subtitleKey: "_create_task_subtitle_")
- }
|