DashboardNetworking.swift 987 B

123456789101112131415161718192021
  1. //
  2. // DashboardNetworking.swift
  3. // DashboardWidgetExtension
  4. //
  5. // Created by Marino Faggiana on 22/08/22.
  6. // Copyright © 2022 Marino Faggiana. All rights reserved.
  7. //
  8. import Foundation
  9. let dashboardDatasTest: [DashboardData] = [
  10. .init(id: 0, image: "nextcloud", title: "title 1", subTitle: "subTitle 1", url: URL(string: "https://nextcloud.com/")!),
  11. .init(id: 1, image: "nextcloud", title: "title 2", subTitle: "subTitle 2", url: URL(string: "https://nextcloud.com/")!),
  12. .init(id: 2, image: "nextcloud", title: "title 3", subTitle: "subTitle 3", url: URL(string: "https://nextcloud.com/")!),
  13. .init(id: 3, image: "nextcloud", title: "title 4", subTitle: "subTitle 4", url: URL(string: "https://nextcloud.com/")!),
  14. .init(id: 4, image: "nextcloud", title: "title 5", subTitle: "subTitle 5", url: URL(string: "https://nextcloud.com/")!)
  15. ]
  16. func readDashboard(completion: @escaping (_ dashboardData: [DashboardData]) -> Void) {
  17. completion(dashboardDatasTest)
  18. }