Skip to content

Commit

Permalink
fixing linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Guretzki committed Dec 11, 2024
1 parent 07ca50a commit c452d74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AdyenActions/Components/SDK/Twint+Injectable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ import Foundation
/// Re-casting **`[TWAppConfiguration]`** into **`[TWAppConfiguration]`** via **`[NSObject]`**
///
/// - **Background:** If different SDKs that use the **TwintSDK** internally are imported by an app
/// it can lead to the system providing a **TwintSDK** class of the other SDK resulting in a runtime crash when type checking. See: [Github Issue](https://github.com/Adyen/adyen-ios/issues/1902)
/// it can lead to the system providing a **TwintSDK** class of the other SDK resulting in a runtime crash when type checking.
/// See: [Github Issue](https://github.com/Adyen/adyen-ios/issues/1902)
/// - **Solution:** To work around this we implicitly cast the `[TWAppConfiguration]` to an `[NSObject]`
/// and then explicitly back to `[TWAppConfiguration]` which makes sure the correctly loaded class is used.
private static func reCastedAppConfigurations(from configurations: [NSObject]?) -> [TWAppConfiguration] {
Expand Down

0 comments on commit c452d74

Please sign in to comment.