LauncherApp.swift 11 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import Foundation
  2. struct LauncherApp: Identifiable, Hashable {
  3. let id: UUID
  4. let name: String
  5. let assetIconName: String
  6. let fallbackSymbolName: String
  7. let description: String
  8. let isCreateNew: Bool
  9. let webURL: URL?
  10. init(
  11. id: UUID = UUID(),
  12. name: String,
  13. assetIconName: String,
  14. fallbackSymbolName: String,
  15. description: String,
  16. isCreateNew: Bool,
  17. webURL: URL?
  18. ) {
  19. self.id = id
  20. self.name = name
  21. self.assetIconName = assetIconName
  22. self.fallbackSymbolName = fallbackSymbolName
  23. self.description = description
  24. self.isCreateNew = isCreateNew
  25. self.webURL = webURL
  26. }
  27. }
  28. extension LauncherApp {
  29. static let createNewTile = LauncherApp(
  30. id: UUID(uuidString: "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA")!,
  31. name: "Create New App",
  32. assetIconName: "icon_create_new_app",
  33. fallbackSymbolName: "plus",
  34. description: "Create and add a custom app shortcut.",
  35. isCreateNew: true,
  36. webURL: nil
  37. )
  38. static let sampleApps: [LauncherApp] = [
  39. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000001")!, name: "Google Shopping", assetIconName: "icon_google_shopping", fallbackSymbolName: "bag.fill", description: "Explore products and offers.", isCreateNew: false, webURL: URL(string: "https://shopping.google.com")),
  40. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000002")!, name: "Gmail", assetIconName: "icon_gmail", fallbackSymbolName: "envelope.fill", description: "Read and send emails quickly.", isCreateNew: false, webURL: URL(string: "https://mail.google.com")),
  41. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000003")!, name: "Google Docs", assetIconName: "icon_google_docs", fallbackSymbolName: "doc.text.fill", description: "Create and edit documents.", isCreateNew: false, webURL: URL(string: "https://docs.google.com")),
  42. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000004")!, name: "Google Drive", assetIconName: "icon_google_drive", fallbackSymbolName: "externaldrive.fill", description: "Store and sync your files.", isCreateNew: false, webURL: URL(string: "https://drive.google.com")),
  43. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000005")!, name: "Google Earth", assetIconName: "icon_google_earth", fallbackSymbolName: "globe.americas.fill", description: "Explore places worldwide.", isCreateNew: false, webURL: URL(string: "https://earth.google.com")),
  44. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000006")!, name: "Google Photos", assetIconName: "icon_google_photos", fallbackSymbolName: "photo.stack.fill", description: "View and organize photos.", isCreateNew: false, webURL: URL(string: "https://photos.google.com")),
  45. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000007")!, name: "Google Maps", assetIconName: "icon_google_maps", fallbackSymbolName: "map.fill", description: "Find routes and places.", isCreateNew: false, webURL: URL(string: "https://maps.google.com")),
  46. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000008")!, name: "Google Translate", assetIconName: "icon_google_translate", fallbackSymbolName: "character.bubble.fill", description: "Translate text and speech.", isCreateNew: false, webURL: URL(string: "https://translate.google.com")),
  47. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000009")!, name: "Google Sheets", assetIconName: "icon_google_sheets", fallbackSymbolName: "tablecells.fill", description: "Work with spreadsheets.", isCreateNew: false, webURL: URL(string: "https://sheets.google.com")),
  48. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000010")!, name: "Google Search", assetIconName: "icon_google_search", fallbackSymbolName: "magnifyingglass.circle.fill", description: "Search the web quickly.", isCreateNew: false, webURL: URL(string: "https://www.google.com")),
  49. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000011")!, name: "YouTube", assetIconName: "icon_youtube", fallbackSymbolName: "play.rectangle.fill", description: "Watch videos and channels.", isCreateNew: false, webURL: URL(string: "https://www.youtube.com")),
  50. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000012")!, name: "Google Calendar", assetIconName: "icon_google_calendar", fallbackSymbolName: "calendar", description: "Manage events and schedules.", isCreateNew: false, webURL: URL(string: "https://calendar.google.com")),
  51. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000013")!, name: "Google Keep", assetIconName: "icon_google_keep", fallbackSymbolName: "lightbulb.fill", description: "Capture notes and reminders.", isCreateNew: false, webURL: URL(string: "https://keep.google.com")),
  52. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000014")!, name: "Google Slides", assetIconName: "icon_google_slides", fallbackSymbolName: "rectangle.on.rectangle.fill", description: "Build and present slides.", isCreateNew: false, webURL: URL(string: "https://slides.google.com")),
  53. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000015")!, name: "Google Forms", assetIconName: "icon_google_forms", fallbackSymbolName: "list.bullet.rectangle.fill", description: "Create forms and surveys.", isCreateNew: false, webURL: URL(string: "https://forms.google.com")),
  54. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000016")!, name: "Google Books", assetIconName: "icon_google_books", fallbackSymbolName: "book.fill", description: "Browse and read books.", isCreateNew: false, webURL: URL(string: "https://books.google.com")),
  55. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000017")!, name: "Google Travel", assetIconName: "icon_google_travel", fallbackSymbolName: "airplane", description: "Plan and organize trips.", isCreateNew: false, webURL: URL(string: "https://travel.google.com")),
  56. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000018")!, name: "Google Meet", assetIconName: "icon_google_meet", fallbackSymbolName: "video.fill", description: "Start and join video meetings.", isCreateNew: false, webURL: URL(string: "https://meet.google.com")),
  57. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000019")!, name: "Google Contacts", assetIconName: "icon_google_contacts", fallbackSymbolName: "person.crop.circle.fill", description: "Manage your contacts.", isCreateNew: false, webURL: URL(string: "https://contacts.google.com")),
  58. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-00000000001A")!, name: "Google Blogger", assetIconName: "icon_google_blogger", fallbackSymbolName: "text.book.closed.fill", description: "Publish and read blogs.", isCreateNew: false, webURL: URL(string: "https://www.blogger.com")),
  59. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-00000000001B")!, name: "Google Play", assetIconName: "icon_google_play", fallbackSymbolName: "play.circle.fill", description: "Apps, games, movies, and books.", isCreateNew: false, webURL: URL(string: "https://play.google.com")),
  60. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-00000000001C")!, name: "Google News", assetIconName: "icon_google_news", fallbackSymbolName: "newspaper.fill", description: "Headlines tailored to you.", isCreateNew: false, webURL: URL(string: "https://news.google.com")),
  61. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-00000000001D")!, name: "Google Chat", assetIconName: "icon_google_chat", fallbackSymbolName: "bubble.left.and.bubble.right.fill", description: "Team messaging and spaces.", isCreateNew: false, webURL: URL(string: "https://chat.google.com")),
  62. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-00000000001E")!, name: "Google Finance", assetIconName: "icon_google_finance", fallbackSymbolName: "chart.line.uptrend.xyaxis", description: "Markets, news, and portfolios.", isCreateNew: false, webURL: URL(string: "https://www.google.com/finance")),
  63. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-00000000001F")!, name: "Google Jamboard", assetIconName: "icon_google_jamboard", fallbackSymbolName: "paintbrush.fill", description: "Collaborative whiteboards.", isCreateNew: false, webURL: URL(string: "https://jamboard.google.com")),
  64. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000020")!, name: "Google Classroom", assetIconName: "icon_google_classroom", fallbackSymbolName: "graduationcap.fill", description: "Teaching and learning hub.", isCreateNew: false, webURL: URL(string: "https://classroom.google.com")),
  65. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000021")!, name: "Google Arts & Culture", assetIconName: "icon_google_arts_culture", fallbackSymbolName: "building.columns.fill", description: "Museums, art, and history.", isCreateNew: false, webURL: URL(string: "https://artsandculture.google.com")),
  66. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000022")!, name: "Google Voice", assetIconName: "icon_google_voice", fallbackSymbolName: "phone.fill", description: "Calls, voicemail, and SMS.", isCreateNew: false, webURL: URL(string: "https://voice.google.com")),
  67. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000023")!, name: "Chrome Web Store", assetIconName: "icon_chrome_web_store", fallbackSymbolName: "bag.fill", description: "Extensions and themes for Chrome.", isCreateNew: false, webURL: URL(string: "https://chrome.google.com/webstore")),
  68. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000024")!, name: "Google Fi Wireless", assetIconName: "icon_google_fi", fallbackSymbolName: "antenna.radiowaves.left.and.right", description: "Phone plan and account.", isCreateNew: false, webURL: URL(string: "https://fi.google.com")),
  69. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000025")!, name: "Google Ads", assetIconName: "icon_google_ads", fallbackSymbolName: "megaphone.fill", description: "Advertising campaigns.", isCreateNew: false, webURL: URL(string: "https://ads.google.com")),
  70. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000026")!, name: "Chrome Remote Desktop", assetIconName: "icon_chrome_remote_desktop", fallbackSymbolName: "desktopcomputer", description: "Access computers remotely.", isCreateNew: false, webURL: URL(string: "https://remotedesktop.google.com")),
  71. LauncherApp(id: UUID(uuidString: "F0000000-0000-0000-0000-000000000027")!, name: "Gemini", assetIconName: "icon_gemini", fallbackSymbolName: "sparkles", description: "Google AI assistant.", isCreateNew: false, webURL: URL(string: "https://gemini.google.com")),
  72. ]
  73. }