Rev 11 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
//// NotificationListView.swift// twogetskills//// Created by Efrain Yanez Recanatini on 7/31/22.//import SwiftUIstruct NotificationListView: View {@EnvironmentObject var appNavigation : AppNavigation@ObservedObject var viewModel :NotificationListViewModel = NotificationListViewModel()private let appData : AppData = AppData.sharedInstancevar body: some View {VStack(spacing: 0) {HStack {Image("logo").resizable().frame(width: 32, height: 32, alignment: .center).aspectRatio(contentMode: .fit).foregroundColor(Color("color_app_bar_foreground")).padding(.leading, 16)Text(Config.LANG_TAB_BAR_BUTTON_NOTIFICATIONS).font(Font.custom(Config.FONT_NAME_REGULAR, size: Config.FONT_SIZE_APP_BAR_HEAD1 )).foregroundColor(Color("color_app_bar_foreground")).padding(.leading, 4)Spacer()}.background(Color("color_app_bar_background")).edgesIgnoringSafeArea(.top).frame(height: 50)Divider()ScrollView {LazyVStack {ForEach(0..<self.viewModel.notifications.count) { index inVStack(spacing: 0) {HStack {Spacer()Text("No hay notificaciones").font(Font.custom(Config.FONT_NAME_BOLD, size: 14)).foregroundColor(Color("color_capsule_list_item_title_foreground"))Spacer()}Divider()} .background(Color("color_capsule_list_item_background")).padding(.leading, 5).padding(.trailing, 5)/*CompanyListItemView(companyUuid: self.viewModel.companies[index].uuid)*/}}}}}}struct NotificationListView_Previews: PreviewProvider {static var previews: some View {NotificationListView()}}