Skip to content

Commit 653c587

Browse files
committed
Fix rebase
1 parent ef203e8 commit 653c587

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

StripeFinancialConnections/StripeFinancialConnections/Source/FinancialConnectionsSheet.swift

-38
Original file line numberDiff line numberDiff line change
@@ -82,44 +82,6 @@ final public class FinancialConnectionsSheet {
8282
}
8383
}
8484

85-
/// Configuration for the Financial Connections Sheet.
86-
@_spi(STP) public struct Configuration {
87-
/// Style options for colors in Financial Connections.
88-
@_spi(STP) @frozen public enum UserInterfaceStyle {
89-
/// Financial Connections will automatically switch between light and dark mode compatible colors based on device settings.
90-
case automatic
91-
92-
/// (default) Financial Connections will always use colors appropriate for light mode UI.
93-
case alwaysLight
94-
95-
/// Financial Connections will always use colors appropriate for dark mode UI.
96-
case alwaysDark
97-
98-
/// Applies the specified user interface style to the given view controller.
99-
func configure(_ viewController: UIViewController?) {
100-
guard ExperimentStore.shared.supportsDynamicStyle else {
101-
return
102-
}
103-
guard let viewController else { return }
104-
105-
switch self {
106-
case .automatic:
107-
break
108-
case .alwaysLight:
109-
viewController.overrideUserInterfaceStyle = .light
110-
case .alwaysDark:
111-
viewController.overrideUserInterfaceStyle = .dark
112-
}
113-
}
114-
}
115-
116-
@_spi(STP) public var style: UserInterfaceStyle
117-
118-
@_spi(STP) public init(style: UserInterfaceStyle = .alwaysLight) {
119-
self.style = style
120-
}
121-
}
122-
12385
// MARK: - Properties
12486

12587
/**

0 commit comments

Comments
 (0)