File tree 1 file changed +0
-38
lines changed
StripeFinancialConnections/StripeFinancialConnections/Source
1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -82,44 +82,6 @@ final public class FinancialConnectionsSheet {
82
82
}
83
83
}
84
84
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
-
123
85
// MARK: - Properties
124
86
125
87
/**
You can’t perform that action at this time.
0 commit comments