Skip to content

Commit

Permalink
Fix issues in rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mats-stripe committed Jan 31, 2025
1 parent 6a3d408 commit 74b0a44
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74b0a44

Please sign in to comment.