diff --git a/Passepartout-iOS/Global/SwiftGen+Strings.swift b/Passepartout-iOS/Global/SwiftGen+Strings.swift index f39b6533..4b65f812 100644 --- a/Passepartout-iOS/Global/SwiftGen+Strings.swift +++ b/Passepartout-iOS/Global/SwiftGen+Strings.swift @@ -646,14 +646,14 @@ internal enum L10n { /// Make a donation internal static let caption = L10n.tr("Core", "organizer.cells.donate.caption") } + internal enum GithubSponsors { + /// Support me on GitHub + internal static let caption = L10n.tr("Core", "organizer.cells.github_sponsors.caption") + } internal enum JoinCommunity { /// Join community internal static let caption = L10n.tr("Core", "organizer.cells.join_community.caption") } - internal enum Patreon { - /// Support me on Patreon - internal static let caption = L10n.tr("Core", "organizer.cells.patreon.caption") - } internal enum Profile { internal enum Value { /// In use diff --git a/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift b/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift index 95e684b3..6103ec36 100644 --- a/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift +++ b/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift @@ -332,6 +332,10 @@ class OrganizerViewController: UITableViewController, StrongTableHost { present(alert, animated: true, completion: nil) } + private func becomeSponsor() { + UIApplication.shared.open(AppConstants.URLs.githubSponsors, options: [:], completionHandler: nil) + } + private func subscribeSubreddit() { UIApplication.shared.open(AppConstants.URLs.subreddit, options: [:], completionHandler: nil) } @@ -437,7 +441,7 @@ extension OrganizerViewController { case donate -// case patreon +// case githubSponsors case translate @@ -530,9 +534,9 @@ extension OrganizerViewController { cell.leftText = L10n.Core.Organizer.Cells.Donate.caption return cell -// case .patreon: +// case .githubSponsors: // let cell = Cells.setting.dequeue(from: tableView, for: indexPath) -// cell.leftText = L10n.Core.Organizer.Cells.Patreon.caption +// cell.leftText = L10n.Core.Organizer.Cells.GithubSponsors.caption // return cell case .translate: @@ -601,8 +605,8 @@ extension OrganizerViewController { case .donate: donateToDeveloper() -// case .patreon: -// visit(AppConstants.URLs.patreon) +// case .githubSponsors: +// becomeSponsor() case .translate: offerTranslation() diff --git a/Submodules/Core b/Submodules/Core index 26431df4..dafd50f1 160000 --- a/Submodules/Core +++ b/Submodules/Core @@ -1 +1 @@ -Subproject commit 26431df4a4d189f45e2892c8fab4268e48c2f7f4 +Subproject commit dafd50f19867c8b0f6e25f8c8c63efd06d635599