From a9696236810227a8edf8f3049b87f5dd389818ed Mon Sep 17 00:00:00 2001 From: "Daniel W. Steinbrook" Date: Wed, 5 Jun 2024 05:13:29 -0400 Subject: [PATCH] Add YouTube channel URL to About screen (#96) --- apps/ios/GuideDogs/Code/App/AppContext.swift | 4 ++++ .../View Controllers/Settings/AboutViewController.swift | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/ios/GuideDogs/Code/App/AppContext.swift b/apps/ios/GuideDogs/Code/App/AppContext.swift index 9d5fe047..c95dcd7c 100644 --- a/apps/ios/GuideDogs/Code/App/AppContext.swift +++ b/apps/ios/GuideDogs/Code/App/AppContext.swift @@ -383,6 +383,10 @@ extension AppContext { return URL(string: "https://soundscape.services")! } + static func youtubeURL(for locale: Locale) -> URL { + return URL(string: "https://www.youtube.com/@SoundscapeCommunity")! + } + static let companySupportURL = URL(string: "https://discord.gg/XakpNsVMBZ")! static let accessibilityFrance = URL(string: "https://soundscape.services")! diff --git a/apps/ios/GuideDogs/Code/Visual UI/View Controllers/Settings/AboutViewController.swift b/apps/ios/GuideDogs/Code/Visual UI/View Controllers/Settings/AboutViewController.swift index 98214f1a..b11e2d8a 100644 --- a/apps/ios/GuideDogs/Code/Visual UI/View Controllers/Settings/AboutViewController.swift +++ b/apps/ios/GuideDogs/Code/Visual UI/View Controllers/Settings/AboutViewController.swift @@ -51,7 +51,8 @@ class AboutApplicationViewController: BaseTableViewController { AboutLinkCellModel(localizedTitle: GDLocalizedString("settings.about.title.whats_new"), segue: "ShowVersionHistorySegue"), AboutLinkCellModel(localizedTitle: GDLocalizationUnnecessary("Privacy Policy"), url: AppContext.Links.privacyPolicyURL(for: LocalizationContext.currentAppLocale), event: "about.privacy_policy"), AboutLinkCellModel(localizedTitle: GDLocalizationUnnecessary("Services Agreement"), url: AppContext.Links.servicesAgreementURL(for: LocalizationContext.currentAppLocale), event: "about.services_agreement"), - AboutLinkCellModel(localizedTitle: GDLocalizedString("settings.about.title.copyright"), segue: "ShowThirdPartyNoticesSegue") + AboutLinkCellModel(localizedTitle: GDLocalizedString("settings.about.title.copyright"), segue: "ShowThirdPartyNoticesSegue"), + AboutLinkCellModel(localizedTitle: GDLocalizationUnnecessary("YouTube Channel"), url: AppContext.Links.youtubeURL(for: LocalizationContext.currentAppLocale), event: "about.youtube_channel") ] if LocalizationContext.currentAppLocale == Locale.frFr {