From fc2d6f391a845cd5100a4b7e47fbba02fd931e6e Mon Sep 17 00:00:00 2001 From: Mel Ludowise Date: Mon, 23 Sep 2024 18:00:34 -0700 Subject: [PATCH] lint fixes --- .../Source/Components/AccountManagementViewController.swift | 2 +- .../StripeConnect/Source/Helpers/StringCodingKey.swift | 4 ++-- .../Source/Internal/Webview/ConnectComponentWebView.swift | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/StripeConnect/StripeConnect/Source/Components/AccountManagementViewController.swift b/StripeConnect/StripeConnect/Source/Components/AccountManagementViewController.swift index 47e4cb22b2c..6f9decc137c 100644 --- a/StripeConnect/StripeConnect/Source/Components/AccountManagementViewController.swift +++ b/StripeConnect/StripeConnect/Source/Components/AccountManagementViewController.swift @@ -56,7 +56,7 @@ public protocol AccountManagementViewControllerDelegate: AnyObject { - error: The error that occurred when loading the component */ func accountManagementLoadDidFail(_ accountManagement: AccountManagementViewController, - withError error: Error) + withError error: Error) } @available(iOS 15, *) diff --git a/StripeConnect/StripeConnect/Source/Helpers/StringCodingKey.swift b/StripeConnect/StripeConnect/Source/Helpers/StringCodingKey.swift index 19ee7e082bd..3318fc86e40 100644 --- a/StripeConnect/StripeConnect/Source/Helpers/StringCodingKey.swift +++ b/StripeConnect/StripeConnect/Source/Helpers/StringCodingKey.swift @@ -7,7 +7,7 @@ import Foundation -//struct StringCodingKey: CodingKey { +// struct StringCodingKey: CodingKey { // var stringValue: String // var intValue: Int? // @@ -22,4 +22,4 @@ import Foundation // init?(intValue: Int) { // return nil // } -//} +// } diff --git a/StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebView.swift b/StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebView.swift index 9be24163021..c52421a0e06 100644 --- a/StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebView.swift +++ b/StripeConnect/StripeConnect/Source/Internal/Webview/ConnectComponentWebView.swift @@ -81,8 +81,8 @@ class ConnectComponentWebView: ConnectWebView { isOpaque = appearance.colors.background == nil sendMessage(UpdateConnectInstanceSender.init(payload: .init( locale: webLocale.webIdentifier, - appearance: .init(appearance: appearance, - traitCollection: traitCollection, + appearance: .init(appearance: appearance, + traitCollection: traitCollection, overlay: overlayStyle) ))) } @@ -173,7 +173,7 @@ private extension ConnectComponentWebView { locale: webLocale.webIdentifier, appearance: .init( appearance: componentManager.appearance, - traitCollection: traitCollection, + traitCollection: traitCollection, overlay: overlayStyle ) )))