From 1953d20bbf2226c8ba38977701bed19d993a67ee Mon Sep 17 00:00:00 2001 From: Daniel Kift Date: Fri, 13 Oct 2023 11:44:22 +0100 Subject: [PATCH] fix the color scheme switch --- .../MobileBuyIntegration/SettingsViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/MobileBuyIntegration/MobileBuyIntegration/SettingsViewController.swift b/Samples/MobileBuyIntegration/MobileBuyIntegration/SettingsViewController.swift index e204cf10..0fe9f86e 100644 --- a/Samples/MobileBuyIntegration/MobileBuyIntegration/SettingsViewController.swift +++ b/Samples/MobileBuyIntegration/MobileBuyIntegration/SettingsViewController.swift @@ -160,7 +160,7 @@ class SettingsViewController: UITableViewController { navigationController?.navigationBar.standardAppearance = navigationBarAppearance navigationController?.navigationBar.scrollEdgeAppearance = navigationBarAppearance view?.window?.overrideUserInterfaceStyle = newColorScheme.userInterfaceStyle - tableView.reloadSections(IndexSet(integer: 1), with: .automatic) + tableView.reloadSections(IndexSet(integer: Section.colorScheme.rawValue), with: .automatic) default: () }