diff --git a/StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift b/StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift index 0a8a2d0bbe4..f3401891591 100644 --- a/StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift +++ b/StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift @@ -82,44 +82,6 @@ final public class FinancialConnectionsSheet { } } - /// Configuration for the Financial Connections Sheet. - @_spi(STP) public struct Configuration { - /// Style options for colors in Financial Connections. - @_spi(STP) @frozen public enum UserInterfaceStyle { - /// Financial Connections will automatically switch between light and dark mode compatible colors based on device settings. - case automatic - - /// (default) Financial Connections will always use colors appropriate for light mode UI. - case alwaysLight - - /// Financial Connections will always use colors appropriate for dark mode UI. - case alwaysDark - - /// Applies the specified user interface style to the given view controller. - func configure(_ viewController: UIViewController?) { - guard ExperimentStore.shared.supportsDynamicStyle else { - return - } - guard let viewController else { return } - - switch self { - case .automatic: - break - case .alwaysLight: - viewController.overrideUserInterfaceStyle = .light - case .alwaysDark: - viewController.overrideUserInterfaceStyle = .dark - } - } - } - - @_spi(STP) public var style: UserInterfaceStyle - - @_spi(STP) public init(style: UserInterfaceStyle = .alwaysLight) { - self.style = style - } - } - // MARK: - Properties /** diff --git a/StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/FinancialConnectionsAppearance.swift b/StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/FinancialConnectionsAppearance.swift index fd969f0cf76..d0cbded3f76 100644 --- a/StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/FinancialConnectionsAppearance.swift +++ b/StripeFinancialConnections/StripeFinancialConnections/Source/Helpers/FinancialConnectionsAppearance.swift @@ -81,10 +81,6 @@ extension FinancialConnectionsAppearance.Colors { // MARK: - Raw colors private extension UIColor { - static var black: UIColor { - return UIColor(red: 0 / 255.0, green: 0 / 255.0, blue: 0 / 255.0, alpha: 1) // #000000 - } - // MARK: Neutral static var neutral0: UIColor { return UIColor(red: 255 / 255.0, green: 255 / 255.0, blue: 255 / 255.0, alpha: 1) // #ffffff